Allow script parameters in batch mode.

EricGagneEricGagne Global Mapper UserPosts: 129Trusted User
edited August 2012 in Suggestion Box
Mike,

Would it be possible to allow passing parameter values on the command line when running a script in batch mode ?

Given the following example
GLOBAL_MAPPER_SCRIPT VERSION=1.00
SET_LOG_FILE FILENAME="G:\Canvec1.log"

DEFINE_VAR NAME="iPath"        VALUE="S:\Data\Geomatique\Cartes\Canvec" PROMPT=NO
DEFINE_VAR NAME="lPath"        VALUE="S:\Data\Geomatique\Cartes\Geobase\Elevation\50K" PROMPT=NO 
DEFINE_VAR NAME="ePath"        VALUE="S:\Data\Geomatique\Cartes" PROMPT=NO
DEFINE_VAR NAME="Projet"    VALUE="Maison" PROMPT=NO
DEFINE_VAR NAME="Zone"        VALUE="031" PROMPT=YES PROMPT_TEXT="Zone Number:"
DEFINE_VAR NAME="Section"    VALUE="E" PROMPT=YES PROMPT_TEXT="Section"




command line arguments would allow to pass the prompted variables to the script.


global_mapper13 scriptfile.gms 'Zone=032' 'Section=A'

I built a script that I will need to run 160 times with different values (10 zones with 16 sections each). Now I do it interactively and I type in my values but it would be nice if I could make a batch file to run GM with my parameters 160 times and just let it go unattended.

Comments

Sign In or Register to comment.