首先我看了一下this。但我没有得到解决方案。如何运行在项目中添加的exe文件
接受的雁说,使用这样的:
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "myExec.exe";
p.Start();
但是这不是为我工作。例外消息显示“系统找不到指定的文件”。
我错过了什么吗?我将exe直接添加到项目本身。
所以接受mookid的回答...... – 2010-03-29 06:25:17
@Steven:正在尝试这样做,但我想我无法在7分钟内接受答案,因此阻止了我这样做。 – Manish 2010-03-29 06:34:14