Usage
The StartService
function starts the specified Windows 2000/XP/2003/Vista Service.
Syntax
StartService(<service_name$>)
or
ret = StartService(<service_name$>)
Parameters
<service_name$>
: string, system name of the Windows 2000/XP/2003/Vista Service to be started.
Return Value
ret
, numeric return code. When the specified service has been started correctly, the function returns 0; otherwise, use this return code for Error Handling. The return code is 109 if WinTaskAdmin Service is not started. The return code is 5 if access is denied.
See Also
Example
StartService("WTScheduler") ' Returns 0 if WTScheduler (The WinTask Scheduler Service) has been started correctly