GET FILENAME PATTERN LIST

From Macros Wiki
Revision as of 18:41, 12 January 2011 by Mikeo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Up

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