system, util, systemutil, get, process, exit, code, scriptless, script-less, scripted, step, view, stepview

Method Zap.SystemUtil.ProcessExitCode

Gets the value that the associated process specified when it terminated

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.SystemUtil.ProcessExitCode()

ZAP Utility

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.SystemUtil.Run

firefox.exe

ZAP Utility

Zap.SystemUtil.Kill

ZAP Utility

Zap...ExitCode

exitCode

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227