I want to run multiple shell commands from c#. I've tried Process.Start(""); but it opens new instances for each command. I've also tried ProcessStartInfo with StreamWriter (ref.) but it doesn't work for me. I want to exeute following shell commands from my c# application.
timeout 10
taskkill /F /IM "v*"
taskkill /F /IM "B*"
timeout 5
shutdown /f /p
How can I run these commands one by one from my c# application?
Thanks in advance...