RUN_COMMAND

The RUN_COMMAND command allows you to execute any program on Windows with a set of parameters. The following parameters are supported by the command.

This command may be disabled from within the application interface in the Configuration dialog in the General Advanced section for security. If it has been disabled, any scripts with RUN_COMMAND will not execute the command and will produce an error. It can not be re-enabled via scripting.

SAMPLES

Here is a sample that runs another instance of Global Mapper and loads a file:

RUN_COMMAND COMMAND_LINE="'c:\program files (x86)\GlobalMapper16\global_mapper.exe' 'c:\temp\export test\blue_springs.opt'" WAIT_FOR_COMPLETE=NO

Here is a sample that calls another .exe and stores the return code of the .exe to the variable RESULT:

RUN_COMMAND COMMAND_LINE="'c:\temp\test1.exe'" CAPTURE_RESULT="RESULT"