file.findInFolder
| Syntax |
file.findInFolder (path, level, pattern)
|
| Params |
path is a legal path name to the folder in which you wish to search for pattern. level is a number indicating the level to which you which to search inside the folder, or the special Frontier constant infinity. 1, search only files found in the folder 2, search the folder and its sub-folders 3, search sub-folders inside sub-folders infinity, search files at all levels in folder pattern is a string of characters for which you wish to search in all of the files contained in the folder at path and in as many levels of sub-folders as indicated in level.
|
| Action |
Searches a folder and optionally a defined set of sub-folders, looking in the data fork of each file it encounters for pattern.
|
| Returns |
The path name of the first file it encounters that contains pattern or an empty string if pattern is not found.
|
| Examples |
file.findInFolder ("C:\\Program Files\\Frontier\\Documentation\\", 1, Frontier) » "C:\\Program Files\\Frontier\\Documentation\\Folder.htt"
file.findInFolder ("System:System Folder:", 1, "Nevada")
|
| See Also |
file.findInFile
|