
The List Files process lets you use wildcards to find all files that have relevant names in a given directory structure.
This can be used, for example, to pass all files of a specific format to the For Each process so that set of processes can be run on each of the files.
Property | Description |
|---|---|
Pattern | Define the wildcard pattern and the directory path to search. 1. Type a file name, including wildcards. The file name can include the complete directory path. If it does not, you can define the starting folder. 2. [Optional] Click Browse (...) to select a folder. |
The * wildcard matches any number of characters, including none.
For example, given these files
D:\data\dataset1.dat
D:\data\dataset2.dat
D:\data\another.dat
the pattern "D:\data\dataset*.dat" will find and list:
D:\data\dataset1.dat
D:\data\dataset2.dat
When * is used within a directory it searches all immediate sub-directories matching the pattern.
The ** wildcard can be used in place of a directory to recursively search all sub-directories.