How to set a value in a script for a CLI input

Discovery
Global Mapper User
Hi All, I'm trying to pass variables via command line but am not sure how to set it in the script. Is it done with a prompt?
CLI: global_mapper.exe c:\temp\openshape.gms -WHICHSHAPE "test.shp"
Script:
GLOBAL_MAPPER_SCRIPT VERSION="1.00"
DEFINE_VAR NAME="WHICHSHAPE" VALUE="?"
IMPORT FILENAME="c:\temp\%WHICHSHAPE%"
......
Answers
-
I was able to define variables (in GM17.2) in the command line using the instructions here:
https://forum.globalmapperforum.com/discussion/11235/pass-2-file-pat-as-variables-on-a-command-line
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 829 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 179 Announcement and News
- 922 Bug Report
- 559 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 573 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website