• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

.bat file help

OutHouse

Lifer
i want to make a bat file that will stop and restart a service that will be called by a monitor program when it sees that the log file it is monitoring hasnt been updated.

i want to put a 15 second pause from when the net stop {service} is initiated to when the net start {service} is started.

what command do i use to put that pause?
 
c:\netsvc.exe service \\server /stop
sleep 15
c:\netsvc.exe service \\server /start
c:\tools\SMTPMail -R %1 -M "server service has been restarted"
 
Back
Top