`
Description: |
baFindFirstFile searches for the first file matching a specification. |
Platforms: |
Windows and Macintosh |
Usage: |
Result = baFindFirstFile( StartDir, FileSpec ) |
Arguments: |
String, string. |
Returns: |
String. Returns the full path to the first file found |
Examples: |
Director: Authorware: |
Notes: |
All sub-directories of the starting directory will be included in the search. This function can be used with baFindNextFile to find all files. On Windows, you can use standard DOS wildcard searching. On Macintosh, if the FileSpec starts with *, then all files with FileSpec in the name will be found, otherwise only exact matches will be returned. Here are examples of searching the C drive for all copies of "netscape.exe" Director: fileList = [] -- a list to contain the found files Authorware: fileList := [] -- a list to contain the found files |
See also: |