Here I have 2 requirements:
- Need a batch file to start a process on remote machine.
- C# program to run batch file. I came across using process info class but I am confused over calling WaitForExit. Why should we call that method? If we don’t call that method what happens?
Start a process (just change this to point to your bat file):
how to start this process
And write a .bat file that does one of the things suggested here:
Run application or Process on a remote computer