Scripting in Batch mode Help?

Hello everybody
Are there any other help about batch mode scripting?
Best regards
DANBRI

Best Answer

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,180
    Answer ✓
    Hello,

    Are you saying that you have DEFINE_VAR commands in your script for VAR1 AND VAR2? If so, you don't need those. Having the variable name on the command line defines the variable in the script.

    Cheers,
    Bob
    DANBRI

Answers

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,180
    Hello,

    There is a recorded webinar here. It is based on an older version of Global Mapper, but the information related to scripting is still valid.

    Cheers,
    Bob
  • DANBRIDANBRI Posts: 24
    Hello bmg_bob
    Thanks for your repley
    I already watched this webinar but i didn't found the answer to my problem.
    I should clarify more, so when i run my line command in cmd (batch mode) as script .gms as shown in the help:
    "C:\Program Files\GlobalMapper17_64bit\global_mapper.exe" "C:\path\to\Script.gms" -var1 01 -var2 33
    it  takes the values declared in the script instead of those given as input in cmd.
    Best regards
    DANBRI
  • DANBRIDANBRI Posts: 24
    Hello Bob
    It works well ...thank you  :)  
    Absolutely.....i was declaring those varaibales using DEFINE_VAR in my script
    Best regards
    DANBRI
Sign In or Register to comment.