In the example below, a File List variable will be created that references XML files from a local directory.
From within the Project Designer page, expand the File System folder in the Component Library, and then drag the Create File List task to the Project Outline.
On the Basic tab of the Create File List task, specify the File List Variable value:
File List Variable
The name of a variable that will contain the list of files being created. This will be a variable type of File List. If this variable exists, then it will be overwritten.
Click the
Add
button in the sub-menu and select the
File Set
option from the sub-menu.
Within the File Set page, specify the directory containing the files.
Click the
Add
button in the sub-menu and choose the
Add a Wildcard Filter
option from the sub-menu.
Click the
Add
button (since the Wildcard Filter element does not have any attributes) and choose the
Include Files
option from the sub-menu.
From the next page, specify the pattern of the files to include. Specify a ? to match a single character. Specify an * to match zero or more characters. For example, specify the pattern of *.xml to include all files that end with “xml”. As another example, specify the pattern of *.* to include all files that in the directory.