Below is a some code that finds a given service if it is running and sets @error to something other then 0 if the service is not running.

Code:

Shell '%comspec% /c net start | find /i "Symantec Antivirus"'
If @ERROR = 0
?"Service running."
Else
?"Service not running."
EndIf
Sleep 5



Edited by Mart (2006-03-28 04:26 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.