| [Overview][Constants][Types][Classes][Procedures and functions][Index] |
FindDefaultExecutablePath - finds the default path to the named Executable file
Source position: fileutil.pas line 101
function FindDefaultExecutablePath( |
const Executable: string; |
const BaseDir: string = '' |
):string; |
Executable |
|
The name of the Executable file |
Returns the filename of the Executable file with path information attached
FindDefaultExecutablePath - finds the default path to the named Executable file
On Windows systems it looks for both with and without the '.EXE' extension
If Executable is not an absolute filename the executable is searched using the environment variable PATH. Relative directories in PATH are expanded using BaseDir.
On non Unix systems (e.g. Windows) it searches in BaseDir as well. While on Unix systems (e.g. Linux, OS X) it only searches in BaseDir, if PATH contains the '.' directory.
| lazarus-ccr.sourceforge.net |