Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Checks if specified service exists

 


Syntax

Service_Exist(sServiceName, bMustExist) As Boolean

 


Parameters

sServiceName (String)

...

Service must exist


Example

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
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