如何通过ASP .NET代码执行批处理文件(.bat)? [英] How to execute batch file (.bat) through asp .net code?

查看:66
本文介绍了如何通过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


这篇关于如何通过ASP .NET代码执行批处理文件(.bat)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆