Sys_WaitForProcessToExist

Description

Searches for a specified process. If specified process does not exist the function will wait. It will check every iIntervalSec at a max of iMaxWaitSec

 

Syntax

Sys_WaitForProcessToExist(sProcessExeName, iMaxWaitSec, iIntervalSec) As Boolean

 

Parameters

sProcessExeName (String)

Name of process

iMaxWaitSec (Integer)

Maximum wait time

iIntervalSec (Integer)

Interval for each process check


 

Return value

If process does not exist after iMaxWaitSec the function will return false

 

Example

VBScript
If bStatus Then bStatus = Sys_WaitForProcessToExist("CapaInstaller.exe", 30, 5)

Scripting Guidelines

 

Related functions

Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner