SIMPOL Documentation

!execute()

Prototype

!execute ( string command, boolean block, integer error )

Return value

.nul

Description

Executes a program on the native OS, and optionally waits for it to complete.

Parameters

ParameterDefault valueType nameDescription
commandNonestring The command line to be executed. The full command line should be given, i.e. the program name and space-delimited command line parameters.
block.falseboolean A flag to indicate whether the call should wait in the function until the program being executed has finished.
error.nulinteger Specifies an object which is used to output any error code which is raised during the starting of the external program. Errors which occur in the program after it has successfully started may halt the program, but will not be returned by this function.