Service_GetState
Description
Gets state of specified service
Syntax
Service_GetState(sServiceName) As Boolean
Parameters
sServiceName (String)
Name of service
Return value
Result will be stored in gsValue. Service Controller Status constants
Example
VBScript
If bStatus Then bStatus = Service_GetState("Service") If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)