Sys_GetProcessID
Description
Gets the process ID's found for an exe name
Â
Syntax
Sys_GetProcessID(sProcessExeName, bReturnAsArray, bMustExist) As Boolean
Â
Parameters
sProcessExeName (Boolean)
Name of process to check
bReturnAsArray (Boolean)
Store result in gaValue
bMustExist (Boolean)
Process must exist
Â
Return value
Result will be stored in gsValue. If specified result is stored in gaValue
Â
Example
VBScript
If bStatus Then bStatus=Sys_GetProcessID("CapaInstaller.exe", True, False) If bStatus And IsArray(gaValue) Then For index = LBound(gaValue) To UBound(gaValue) bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & cStr(gaValue(index)), bStatus, True) Next End If
Â
Related functions
Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner