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

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