How to run an exe which is added in the project
- by Manish
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.