Call variables in Batch Mode ?
Hello everybody
I want to run my script .gms and declare the variables and their values used in it without editing the original script using cmd command line in batch mode.
How can i called value of variable using batch mode and related it by her script .gms?
Best regards
DANBRI
I want to run my script .gms and declare the variables and their values used in it without editing the original script using cmd command line in batch mode.
How can i called value of variable using batch mode and related it by her script .gms?
Best regards
DANBRI
Tagged:
Answers
-
Hello,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 referenced in the script as %VAR1% and %VAR2%.
Cheers,
Bob -
Hello Bob
I think my probleme it's about "/showprogress" option,...i put this option to show progresss during processing but my the script saw this option as a variable and asks for her value like error.
Iremoved it and i put this option inside my script. it work very well .
Best regards
DANBRI
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website