I need to know the status of a service at the end of my batch script which restarts services using \"net stop thingie\" and \"net start thingie\".
In my most favorite id
look also hier:
NET START | FIND "Service name" > nul IF errorlevel 1 ECHO The service is not running
just copied from: http://ss64.com/nt/sc.html