Stopping/Starting a remote Windows service and waiting for it to open/close
- by ripper234
The top answer to this question tells me how to stop/start a remote service. Great.
Now, all I need is to wait for the actual stop/start to complete. So, what I'm looking for is a dos command to:
Start a service, should return only after the service is started (or after a timeout, raising error level)
Stop a service, return only after the service is stopped