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

Description

Checks if specified service exists


Syntax

Service_Exist(sServiceName, bMustExist) As Boolean


Parameters

sServiceName (String)

Name of service

bMustExist (Boolean)

Service must exist


Example

VBScript
If bStatus Then bStatus = Service_Exist("ServiceName", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines


Related functions

Service_GetState Service_SetLogonInformations

  • No labels