Skip to content

Sys_ProcessCount

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.

Sys_ProcessCount(sProcessExeName) As Boolean

File name of the process, for example notepad.exe

The number of running processes is stored in giValue.

If bStatus Then bStatus = Sys_ProcessCount("CapaInstaller.exe")
If bStatus Then bStatus = Job_WriteLog("Custom", "giValue: " & giValue, bStatus, True)

Scripting Guidelines

Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner Constants Package Property Variables