Service_WaitForStart

Description

Wait for specified service to start

 

Syntax

Service_WaitForStart(sServiceName, iTimeOutInSec) As Boolean

 

Parameters

sServiceName (String)

Name of service

iTimeOutInSec (Integer)

How many seconds to wait for service to start

 

Example

VBScript
If bStatus Then bStatus = Service_WaitForStart("Service", 90)

Scripting Guidelines

 

Related functions

Service_Create Service_Exist Service_SetStartMode