The system cannot find the file specified when running CMD.exe from C#
- by Wololo
I'm getting the error message when running the following code from a C# console program.
"The system cannot find the file
specified"
Here is the code:
System.Diagnostics.Process.Start("C:\Windows\System32\cmd.exe
/c");
Strangely when i omit the /c switch the command can run!?!
Any ideas what I'm doing wrong?