Run Global Mapper and Script from batch file
gomckenz
Global Mapper User
I might be missing the obvious but I cannot run any scripts from a batch file without Global Mapper exiting right away. What I want to do is Have Global Mapper run from a script file, open a Surfer GRD file and show the 3d Viewer.
I have a script that works but when run from a batch file it loads and exits immediately. Can i make it run such that the batch file launches and leaves the program windows open? Is there a list of command line arguments documented that i am not finding?
Thanks
I have a script that works but when run from a batch file it loads and exits immediately. Can i make it run such that the batch file launches and leaves the program windows open? Is there a list of command line arguments documented that i am not finding?
Thanks
Comments
-
Whenever you run a .gms script from the command line it automatically runs with no interface and immediately closes. To open the user interface, name it as a .gmw (Global Mapper Workspace) instead and it will run and leave the interface open.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Hello,
Sorry to ask, but can you give an example on how to run my "delete_tiles.gms" script from batch wit and w/o the interface.
Thank you, -
Just pass it on the command line. For example for a batch ran in the same folder as the .gms file, use:
"C:\Program Files\GlobalMapper14_64bit\global_mapper14.exe" "delete_tiles.gms"
That should run the script file with no interface and immediately return. Note the path to the .exe may be different for you.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website