Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Starting and Stoping Windows Service using Batch File - Delay or Timeout before starting serivce again - windows 7

$
0
0

SC STOP WindowsServiceName

TIMEOUT /T 5 /NOBREAK

SC START WindowsServiceName

SC, TIMEOUT is command line tool

You need to execute batch file as ADMIN.

You can start stop windows service in Post Build Event.

TIMEOUT did not work for me in Visual Studio Build Post Event.

Please let me know if you have any question.

Thanks

Imran


EME


Viewing all articles
Browse latest Browse all 2763

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>