[Solved] How can I pause between two commands


There are ways to do this in .NET using the ServiceController class and avoiding any interaction with the shell.

You can find those here:MSDN ServiceController

If you’d prefer to invoke a process through the CMD, you can create two separate processes and call either Thread.Sleep(milliseconds) or Task.Delay(milliseconds) to wait. Additionally, make sure that after you start your process, call the .WaitForExit() method so that the process completes before moving on.

Personally, I recommend using ServiceController as it uses all .NET components rather than relying on the shell.

solved How can I pause between two commands