I have a console application project. In the application I need to start the command prompt and pass an argument to the command prompt.
I have tried
System.Diagnostics.Process.Start("cmd", "shutdown -s");
but it does nothing but just starts the command prompt
What I want to do is start the command prompt and pass this argument to the command prompt
"shutdown -s"
How do I do that?.