Purpose |
Find a file on disk and return the path and/or file name parts. | ||||||||||
Syntax |
fil$ = PATHSCAN$(director, filespec$[, pathspec$]) | ||||||||||
Remarks |
The PATHSCAN$ function scans specified directories
to find a particular file. If
the file is found, it returns either the full path/file name, or a selected
part of it. If
the file is not found, a nul (zero-length)
| ||||||||||
director |
This is one of the following words which is used to specify the requested part:
| ||||||||||
filespec$ |
A file name which is expected to exist on disk. It must not be an ambiguous name -- that is, it may not include a query (?) or an asterisk (*) character. | ||||||||||
pathspec$ |
An optional path string which includes one or more paths to be searched to find filespec$. If multiple path names are included in this string, they must each be separated by a semicolon (;) delimiter. If pathspec$ is not given, or it is a nul (zero-length) string, the following directories are searched:
| ||||||||||
See also |
|||||||||||
Example |
The following information assumes that the file named "MyFile.txt" currently exists in the directory "C:\PB". f$ = "MyFile.txt" : p$ = "C:\MyDir;C:\PB" |