TM1 Function for TI, WildCardFileSearch

Searches files using wildcard characters in a folder.

What is the WildCardFileSearch function?

WildCardFileSearch searches files using wildcard characters in a folder.

Where can the WildCardFileSearch function be used?


What is the syntax for WildCardFileSearch?

WildCardFileSearch(Pathname, PriorFilename);

Pathname = A file path including file search criteria that can contain a wildcard character. For eg:​

PriorFilename = Name of the existing file in the folder. If we pass empty string argument, then the function returns the first file which matches the criteria

A demonstration on how to use WildCardFileSearch

Use WildcardFileSearch to search files starting with a P.