Batch variables

When running in batch mode you can define variables on the command line so they will be available when running the script. You provide pairs of tokens on the command line, after the file name. Each pair must look like:

-<var name> <var value>

or

/<var name> <var value>

Example command line:

 
global_mapper.exe "c:\temp\myscript.gms" -var1 01 -var2 33

This defines two variables that can be used in the script: var1=01 and var2=33. See the DEFINE_VAR command for details on how to use variables.