How to run an exe which is added in the project

Posted by Manish on Stack Overflow See other posts from Stack Overflow or by Manish
Published on 2010-03-29T05:54:18Z Indexed on 2010/03/29 6:03 UTC
Read the original article Hit count: 218

Filed under:
|

First of all I did gave a look at this one. But I didn't got the solution.

The accepted anser says to use it like this:

Process p = new Process(); 
p.StartInfo.UseShellExecute = false; 
p.StartInfo.RedirectStandardOutput = true; 
p.StartInfo.FileName = "myExec.exe"; 
p.Start(); 

But this is not working for me. THe exception's message says "The system cannot find the specified file".

Am I missing something? I added the exe directly to the project itself.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET