Method SystemUtil.CloseProcessByName

Closes process by given name

Usage

Function ZAP.SystemUtil.CloseProcessByName (
	String ProcessName,
	Boolean CloseAllMatches [Optional]
)

ZAP Utility

ZAP Utility step

SystemUt...ByName

Google Chrome

false

String ProcessName

CloseAllMatches

Parameters

ProcessName

Type: Integer

Process name

CloseAllMatches (optional)

Type: Boolean

Default value: false

Option to close All processes with given name

Returns

No return value

Example

VBScript

Zap.SystemUtil.CloseProcessByName "Google Chrome", false

JavaScript

Zap.SystemUtil.CloseProcessByName("Google Chrome", false);

Comment

Close "Google Chrome" process

Script-Less next step

ZAP Utility

ZAP Utility step

SystemUt...ByName

Google Chrome

Script-Less next step

Comment

Close all processes with the given name

Script-Less next step

ZAP Utility

ZAP Utility step

SystemUt...ByName

Google Chrome

true