# Sys_ExistProcess

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

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

### 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**

```vb
If bStatus Then bStatus = Sys_ExistProcess("CapaInstaller.exe", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, 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/)
