__system1
Syntax
__system1(string)Parameters
stringThe command line used to start an external application. In some cases, the full path is needed. If it contains space characters, quotation marks escaped with backslashes (
\") can be added to encapsulate the path, and, separately, the arguments to the application, like this:"\"D:\\My projects\\my app\\app.exe\" \"some argument\"".
Return value
The exit code returned from the external application. If the application could not be launched or fails to return an appropriate exit code, 1 is returned.
For use with
All C-SPY drivers.
Description
This macro launches an external application. It ignores all output returned from the application, and terminates the launched application if the application has not finished within the current timeout setting (by default 10 seconds).
Example
__var exitCode;
exitCode = __system1("mkdir tmp");See also
__setSystemTimeout, __system2, and __system3.