开始在托管code另一个EXE [英] Start another EXE in Managed Code
本文介绍了开始在托管code另一个EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能开始在托管code另一个EXE?在这个时候,我所能做的就是用:
System.Diagnostics.Process.Start(EXENAME)
时有另一种方式在同一个项目中调用其它EXE?
谢谢! JFV
解决方案
工艺过程=新工艺();
process.StartInfo.FileName =C:\ test.exe的;
process.StartInfo.Arguments =/ E / S;
的Process.Start();
这样,你得到了很多的选项,为您处理,如process.WaitForExit(),所以你可能不会异步运行您的程序,等等。
Is it possible to start another EXE in Managed Code? At this time, all I can do is use:
System.Diagnostics.Process.Start(exeName)
Is there another way to call another EXE within the same project?
Thanks! JFV
解决方案
Process process = new Process();
process.StartInfo.FileName = "c:\test.exe";
process.StartInfo.Arguments = "/e /s";
process.Start();
This way you get a lot of options for your process such as process.WaitForExit() so you may not run asynchronously your process, etc.
这篇关于开始在托管code另一个EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文