f$FindFiles (f$SucheDateien)
f$FindFiles (f$SucheDateien)
With this function you can search for files by entering a file name with a wildcard(*). The name of the first file found is returned (without path details). More files for this search mask can be detected with following calls of this function, using an empty string (") as search criterion. If no file is found with this filter, an empty string is returned.
Please note that, when entering a path in the file name, the character "\" must be entered twice ("\\").
Syntax: | File = f$FindFiles(Filter) | ||
| Argument | Type | Meaning |
| Filter | String | Details for a filter to specify a file. |
Result: | String | Name of the file | |
Example: | File1 = f$FindFiles('C:\\TEMP\\*.txt') | ||