运行 来自网络服务器的批处理文件

Running batch file from webserver

我有一个 Web 服务器,只有我在我的 windows 机器上使用 运行ning,我希望它 运行 当我在 Web 服务器上的批处理文件单击网站上的按钮。这可能吗?

重申一下:

单击按钮 -> 网站 运行s 批处理文件与网络服务器在同一台机器上

python 中有一个轻量级网络服务器示例:http://www.acmesystems.it/python_httpd

和运行批处理文件+获取输出:Run a .bat file using python code