Searches the specified file path for the specified file. If the file is found, the search returns the full file specification of the first file found within the path, and then stops searching. If the file is not found, the search returns a null string.
An environment variable name. The environment variable must contain a list of file directories. Examples are "PATH" or "DPATH".
The file for which the path is to be searched.
Specifies where the search starts.
Starts the search at the current directory and then along the specified path. This is the default.
Starts the search at the path, not at the current directory.
/* Code */ fspec = SysSearchPath("PATH", "CMD.EXE") say "CMD.EXE is located at" fspec /* Output */ CMD.EXE is located at C:\WIN\CMD.EXE