Answer the question
In order to leave comments, you need to log in
How to pause script or make sleep in bat file?
It is necessary to write a script that will restart the windows service
. One problem, the service stops for about 5 seconds.
Tell me a command like sleep to be inserted between the stop / start commands
sc stop service
................
sc start service
Answer the question
In order to leave comments, you need to log in
and if anyone can, write this script in a loop (meaning the service stops, if the service is stopped, then another command is executed, if not, then wait a second) (I think that in this case it is not appropriate, I'm just wondering)
stackoverflow
On Windows Vista / Windows 7 you can use the timeout command:timeout /T [delay in seconds] /NOBREAK > NUL
analogue of sleep - timeout [sec]
the problem is not solved? what kind of service is so "good"?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question