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)
Â
Related functions
Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner