如何通过ASP .NET代码执行批处理文件(.bat)?

问题描述:

我有一个批处理文件,我必须通过asp.net代码执行它.有人可以帮助我吗?

I have one batch file and i have to execute it through asp.net code.Can anybody help me?

是否要在服务器上更新它?如果是的话?
那么您可以使用Process类运行批处理文件.
并且您还需要模拟它.因为运行exe文件需要管理员权限.

详情请看

单击此处
Do you want to update it on server? If yes?
then you can use the Process class to run the batch file.
and also you need to impersonate it. Because running an exe file need admin rights.

For details have a look

Click here