Difference between revisions of "GET FILENAME PATTERN LIST"
From Macros Wiki
Line 7: | Line 7: | ||
|param2=<nowiki><num files found></nowiki>|param2_desc={{parameter_variable_any_name}} the number of matching files. | |param2=<nowiki><num files found></nowiki>|param2_desc={{parameter_variable_any_name}} the number of matching files. | ||
|param3=<nowiki><filename array></nowiki>|param3_desc={{parameter_array_string_name}} the list of matching files. | |param3=<nowiki><filename array></nowiki>|param3_desc={{parameter_array_string_name}} the list of matching files. | ||
− | |param4=<nowiki>[<sub folders>]</nowiki>|param4_desc=Set to 1 to search sub folders. | + | |param4=<nowiki>[<sub folders>]</nowiki>|param4_desc=Set to 1 to search sub folders. Default is 0. |
}} | }} | ||
Latest revision as of 18:41, 12 January 2011
Command
- GET_FILENAME_PATTERN_LIST <pattern> <num files found> <filename array> [<sub folders>]
Get a list of filenames matching a pattern that includes wildcard characters.
Parameters
- <pattern>
- Filename pattern, may include ? and * characters
- <num files found>
- Name of variable to be set to the number of matching files.
- <filename array>
- Name of string array to be set to the list of matching files.
- [<sub folders>]
- Set to 1 to search sub folders. Default is 0.
Example
- LOCAL NumFiles, FileList$(100)
- GET_FILENAME_PATTERN_LIST "C:\MyFolder\*.txt", NumFiles, FileList$, 1