Windows NT Machines Only
Encapsulates the AutoMate™ action in the “Services” group, “Start a service.” The method attempts to start the specified service.
Declaration
function StartService (varServiceName As Variant) As Integer
Parameters
varServiceName
The name of the service (as it appears in the SCM) to be started.
Description
The StartService method attempts to start the service named varServiceName.
The method returns “0” if the service was started successfully; otherwise, it returns “1.” Use the GetLastError property to retrieve the error message generated by a failed start attempt.