Hi,
I am using below command for monitoring the service. And it has to sent email alert if Service START.
for /F "tokens=3 delims=: " %%H in ('sc query "MY SERVICE" ^| findstr " STATE"') do (
if /I "%%H" NEQ "RUNNING" (
net start "MY SERVICE"
))
Regards
Menon
Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.