Global Mapper v24.1

Wildcard in directory import script

MorganRS
MorganRS Global Mapper UserTrusted User
edited June 2016 in GM Script Language
I'm trying to have a script import directories and require a wildcard because some have different prefixes, but Global Mapper doesn't seem to recognize the wildcard. Am I doing something wrong? Here is the section of my script:
IMPORT_DIR_TREE DIRECTORY="G:\Data_State\%state%\Administrative_Boundaries\*complete" FILENAME_MASKS="*.SHP"

I've also tried it as:
IMPORT_DIR_TREE DIRECTORY="G:\Data_State\%state%\Administrative_Boundaries\?complete" FILENAME_MASKS="*.SHP"
I'm using 17.2


Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    Answer ✓
    Hello,

    The wildcard characters can only be used in the FILENAME_MASKS parameter, not in the DIRECTORY parameter.

    Cheers,

    Bob