Current dir variable

AndrewWAndrewW Global Mapper UserPosts: 51Trusted User
When running a GM script from a bat file how do you get the current working dir that the bat file is running in as a variable for the directory name of an output file name within the GM script.


  • bmg_bobbmg_bob Global Mapper Programmer Posts: 1,688

    %SCRIPT_FOLDER% - inserts the full path of the running script/workspace file. This will include a trailing slash. So a script 'C:\path\my_script.gms' would get 'C:\path\' inserted.

    The complete list of built-in variables is in the documentation for the DEFINE_VAR command.

Sign In or Register to comment.