Sys_ProcessCount
Description
Section titled “Description”Counts the number of running processes with the specified name. The name is case-sensitive, so use the same case as Windows shows, for example in Task Manager.
Syntax
Section titled “Syntax”Sys_ProcessCount(sProcessExeName) As Boolean
Parameters
Section titled “Parameters”sProcessExeName (String)
Section titled “sProcessExeName (String)”File name of the process, for example notepad.exe
Return value
Section titled “Return value”The number of running processes is stored in giValue.
Example
Section titled “Example”If bStatus Then bStatus = Sys_ProcessCount("CapaInstaller.exe")If bStatus Then bStatus = Job_WriteLog("Custom", "giValue: " & giValue, bStatus, True)Related functions
Section titled “Related functions”Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner Constants Package Property Variables