Usage
The IsServiceStarted function indicates if the specified Windows 2000/XP/2003/Vista Service is started or not. This function is 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
- 109 if WinTaskAdmin Service is not started
- 5 if access is denied
Example
'Check if the WTScheduler service is started
a = IsServiceStarted("WTScheduler") ' Returns 1 if the WTScheduler service (the WinTask Scheduler) is started.
msgbox("WTScheduler service started: " + str$(a))
