[Overview][Classes][Procedures and functions][Index] Reference for unit 'UTF8Process' (#lazutils)

FindFilenameOfCmd

Gets the full path for the specified executable file.

Declaration

Source position: utf8process.pp line 55

function FindFilenameOfCmd(

  ProgramFilename: string

):string;

Arguments

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

FilenameIsAbsolute

  

Determines if the specified value is an absolute file path (not a relative one).

CleanAndExpandFilename

  

Removes whitespace and resolves special characters in the specified file name.

FindDefaultExecutablePath

  

Finds the default path to the named Executable file.


Version 3.2 Generated 2024-02-25 Home