IsServiceStarted
System function.
The IsServiceStarted function indicates if the specified Windows XP/2003/Vista/Windows 7 Service is started or not. Not available in WinTask Lite.
Syntax
a = IsServiceStarted(<service_name>)
Parameters
<service_name>, string, name of the service.
Return value
a, integer, return value: 1 if the service <service_name> is started, 0 otherwise. The return code is 109 if WinTaskAdmin Service is not started. The return code is 5 if the access is denied.
Example
a = IsServiceStarted("WTScheduler") ' Returns 1 if the WTScheduler service (the WinTask Scheduler) is started.