FORCE_EXIT
The FORCE_EXIT command aborts the script and optionally immediately shuts down Global Mapper without going through the normal shut-down process. This is useful if you are running a Global Mapper script via a CreateProcess call and the Global Mapper process is not returning when the script completes, or if you need a particular return code provided. The following parameters are supported by this command:
- CLOSE_APP - specifies whether or not the Global Mapper application should be closed in addition to stopping the script. By default this is enabled, so add CLOSE_APP=NO to only abort the script and not the entire app.
- RETURN_CODE - specifies the numeric return code to use. If not provided 0 is returned if the script did not encounter any errors or 1 if there were errors encountered.