Stopping/Starting a remote Windows service and waiting for it to open/close

后端 未结 11 1564
广开言路
广开言路 2020-12-02 06:42

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 f

11条回答
  •  甜味超标
    2020-12-02 07:45

    NET START and NET STOP shouldn't return until the service has indicated that the service has started or stopped successfully.

提交回复
热议问题