FindFilenameOfCmd function
Gets the full path for the specified executable file.
Declaration
function FindFilenameOfCmd(ProgramFilename: string): stringArguments
ProgramFilename | Program file examined in the method. |
Function result
Absolute path to the requested program file, or an empty string.
Description
FindFilenameOfCmd is a
String function used to get the
full path for the executable file specified in the
ProgramFilename
argument. FindFilenameOfCmd calls the
FilenameIsAbsolute routine
to determine if a relative path in ProgramFilename needs to be resolved.
FindDefaultExecutablePath is called to search the
PATH
environment when path information is not used in ProgramFilename.
The return value contains the absolute path and file name. If the file does not exist on the local file system, the return value is an empty string ('').
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
