用于运行vbs文件的asp.net代码 [英] asp.net code to run a vbs file
本文介绍了用于运行vbs文件的asp.net代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
有人能帮助我如何使用c#asp.net运行vbs文件
解决方案
尝试这个
ProcessStartInfo psi = new ProcessStartInfo(" Sam.vbs");
psi.WindowStyle = ProcessWindowStyle.Hidden;
过程p =新过程();
p.EnableRaisingEvents = true;
p.Exited + = new EventHandler(MyExited);
p.StartInfo = psi;
p.Start();
p.Kill();
具有什么意义这一行
p.Exited + = new EventHandler(MyExited);
它给了我错误
< blockquote>这就是Handler供您使用。
如果您不需要,请删除该行。我不会伤害代码。
Hi
Can some one help me how to run a vbs file using c# asp.net
解决方案
Try This
ProcessStartInfo psi = new ProcessStartInfo("Sam.vbs");
psi.WindowStyle = ProcessWindowStyle.Hidden;
Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(MyExited);
p.StartInfo = psi;
p.Start();
p.Kill();
what is the significance of this line
p.Exited += new EventHandler(MyExited);
It is giving me error
Thats the Handler for your use.
If u don''t need that, just remove that line. I doesn''t harm the code.
这篇关于用于运行vbs文件的asp.net代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文