Sys_ExistProcess

Description

Searches for a specified process. If specified process exist gbValue will be TRUE otherwise it will be FALSE.

 

Syntax

Sys_ExistProcess(sProcessExeName, bMustExist) As Boolean

 

Parameters

sProcessExeName (String)

Name of process

bMustExist (Boolean)

Process must exist

 

Return value

Result will be stored in gbValue

 

Example

VBScript
If bStatus Then bStatus = Sys_ExistProcess("CapaInstaller.exe", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

 

Related functions

Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner