execute
Executes a command on the front-end platform, with or without waiting.
Syntax
ui.Interface.frontCall("standard", "execute",
[command,wait], [result])
- command - The command to be executed.
- wait - The wait option (
TRUE
=wait,FALSE
=do not wait). - result - The execution status (
TRUE
=success,FALSE
=error).
Usage
The "execute
" front call runs a command on the front-end platform, with or
without waiting option.
Tip: When specifying a file path, pay attention to platform specific
rules regarding directory separators and space characters in file names. When the front-end executes
on a recent Microsoft™ Windows™ system, you can use the
/
slash character as directory separator,
like on Unix systems. A directory or file name can contain spaces, and there is no need to surround
the path with double quotes in such case. When using backslash directory separators, make sure to
escape backslash characters in string literals with \\
.If the second parameter is set to TRUE
, the runtime system will wait until
the front-end gives the control back after the local command was executed.
Example
For Microsoft Windows system:
-- Using backslash as directory separator:
CALL ui.Interface.frontCall("standard", "execute",
["C:\\Program Files\\FourJS\\gdc\\3.10\\bin\\gdc.exe --help",FALSE], [res] )
-- Using slash as directory separator:
CALL ui.Interface.frontCall("standard", "execute",
["C:/Program Files/FourJS/gdc/3.10/bin/gdc.exe --help",FALSE], [res] )