Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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)

Scripting Guidelines


Related functions

Service_Exist Service_SetLogonInformations

  • No labels