The system cannot find the file specified when running CMD.exe from C#
Posted
by Wololo
on Stack Overflow
See other posts from Stack Overflow
or by Wololo
Published on 2010-03-13T15:27:41Z
Indexed on
2010/03/13
15:35 UTC
Read the original article
Hit count: 435
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?
© Stack Overflow or respective owner