Method SystemUtil.ProcessExitCode

Gets the value that the associated process specified when it terminated

Usage

Function ZAP.SystemUtil.ProcessExitCode()

ZAP Utility

ZAP Utility step

ZAP...ExitCode

exitCode

Output Parameter

Parameters

This method does not take parameters

Returns

The code that the associated process specified when it terminated. 0 if process is not created

Example

VBScript

Zap.SystemUtil.Run "firefox.exe"
Zap.SystemUtil.Kill
msgbox Zap.SystemUtil.ProcessExitCode

JavaScript

Zap.SystemUtil.Run("firefox.exe");
Zap.SystemUtil.Kill();
alert(Zap.SystemUtil.ProcessExitCode());

ZAP Utility

ZAP Utility step

Zap.SystemUtil.Run

firefox.exe

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.SystemUtil.Kill

Script-Less next step

ZAP Utility

ZAP Utility step

Zap...ExitCode

exitCode