# Sys_ProcessCount

> Counts the number of specified process instances.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/system-functions/sys-processcount/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Counts the number of specified process instances

### Syntax

Sys_ProcessCount(sProcessExeName) As Boolean

### Parameters

#### sProcessExeName (String)

Name of process

### Return value

Result will be stored in giValue

### Example

**VBScript**

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

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Sys_WaitForProcess](/capainstaller/vb-scripting-library/system-functions/sys-waitforprocess/) [Sys_Sleep](/capainstaller/vb-scripting-library/system-functions/sys-sleep/) [Sys_KillProcess](/capainstaller/vb-scripting-library/system-functions/sys-killprocess/) [Sys_GetProcessOwner](/capainstaller/vb-scripting-library/system-functions/sys-getprocessowner/) [Sys_CompareProcessOwner](/capainstaller/vb-scripting-library/system-functions/sys-compareprocessowner/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
