Sys\_WaitForProcessToExist
Description
Section titled “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
Section titled “Syntax”Sys_WaitForProcessToExist(sProcessExeName, iMaxWaitSec, iIntervalSec) As Boolean
Parameters
Section titled “Parameters”sProcessExeName (String)
Name of process
iMaxWaitSec (Integer)
Maximum wait time
iIntervalSec (Integer)
Interval for each process check
Return value
Section titled “Return value”If process does not exist after iMaxWaitSec the function will return false
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Sys_WaitForProcessToExist("CapaInstaller.exe", 30, 5)Related functions
Section titled “Related functions”Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner