The sysLib.startCmd() system function runs a system command and then continues processing, without waiting for the command to finish. This function is provided for compatibility with the I4GL RUN WITHOUT WAITING statement. You can use this function to start non-EGL programs or scripts.
sysLib.startCmd("mySpecialProgram.exe");In this case, the PATH environment variable must point to the directory that holds mySpecialProgram.exe. You can also specify the complete directory location, as in the following example:
sysLib.startCmd("program files/myWork/mySpecialProgram.exe");
Use the sysLib.callCmd() function to run a system command and wait until the command finishes to continue processing.
Both sysLib.callCmd() and sysLib.startCmd() assign the value that the system command returns to the system variable sysVar.returnCode. The system command must return a value that is assignment compatible with the INT type.
sysLib.startCmd( command STRING in [, mode STRING in] )