DOS batch file help

moonbaby
Global Mapper User
I made a script but was wondering how i set this up to run as a DOS Batch? Here is what i have for my script....
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL
IMPORT FILENAME="C:\unzipped\us_temphazards\temp_hazards.dbf" ANTI_ALIAS=YES
IMPORT FILENAME="C:\unzipped\us_preciphazards\precip_hazards.dbf" ANTI_ALIAS=YES
EXPORT_VECTOR FILENAME="C:\Documents and Settings\My Documents\6-10_temp\temps.txt" TYPE=SIMPLE_ASCII EXPORT_ELEV=NO EXPORT_ATTRS=YES
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL
IMPORT FILENAME="C:\unzipped\us_temphazards\temp_hazards.dbf" ANTI_ALIAS=YES
IMPORT FILENAME="C:\unzipped\us_preciphazards\precip_hazards.dbf" ANTI_ALIAS=YES
EXPORT_VECTOR FILENAME="C:\Documents and Settings\My Documents\6-10_temp\temps.txt" TYPE=SIMPLE_ASCII EXPORT_ELEV=NO EXPORT_ATTRS=YES
Comments
-
To run a script from DOS in batch mode, simply call Global Mapper with your script filename as the parameter from your batch file. For example, the following:
"C:\Program Files\GlobalMapper9\global_mapper9.exe" "c:\test\my_script.gms"
This will run the script and then immediately exit without showing a user interface.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
global_mapper wrote: »To run a script from DOS in batch mode, simply call Global Mapper with your script filename as the parameter from your batch file. For example, the following:
"C:\Program Files\GlobalMapper9\global_mapper9.exe" "c:\test\my_script.gms"
This will run the script and then immediately exit without showing a user interface.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Thank you much for the help...worked perfectly! -
Is there an option to not include the "Drawing Style Attributes Before Coordinate Data" when using the SIMPLE_ASCII EXPORT in DOS batch mode? I'm just wanting the "Include Feature Attributes Before Coordinate Data"
Thanks! -
There wasn't a way to do that, but I've gone ahead and added the ability to specify a parameter value of EXPORT_ATTRS=NO_STYLE to disable the style attribute export when generating attributes. I have placed a new build of Global Mapper 9 with the fix at http://www.globalmapper.com/global_mapper9.zip . Simply download that file and extract the contents over your existing v9.xx installation to give it a try.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
My Batch file
@echo off
"C:\11\GlobalMapper\global_mapper.exe" "C:\11\13.gms"
But it not working. Help me
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
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 179 Announcement and News
- 923 Bug Report
- 560 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 574 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website