SysLib.callCmd function

SysLib.callCmd runs a system command synchronously and returns an integer.

Package

eglx.lang

Syntax
static function callCmd(commandString string in) returns (int);
commandString
Identifies the code to invoke.
Example use
The system command that is run must be visible to the code that invokes the function. For example, consider the following statement:
SysLib.callCmd("mySpecialProgram.exe")
The program "mySpecialProgram.exe" must be in a directory to which the PATH variable points. You can also specify the complete directory location, as in the following example:
SysLib.callCmd("program files/myWork/mySpecialProgram.exe")
Comments

The system command must return a value that is assignment compatible with an integer.

To initiate a system command asynchronously, invoke SysLib.startCmd.

Compatibility

Table 1. Compatibility
Target Issue
Java No issues.
JavaScript The SysLib.callCmd function is not supported.