StartService
System function.
The StartService function starts the specified Windows XP/2003/Vista/Windows 7 Service. Not available in WinTask Lite.
Syntax
StartService(<service_name$>)
or
ret=StartService(<service_name$>)Parameters
<service_name$>: system name of the Windows XP/2003/Vista/Windows 7 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 the access is denied.
See also
Example
StartService("WTScheduler") ' Returns 0 if WTScheduler (The WinTask Scheduler Service) has been started correctly