| [Overview][Constants][Types][Procedures and functions][Variables][Index] |
Examines the specified file to see if it is executable
Source position: lazfileutils.pas line 48
procedure CheckIfFileIsExecutable( |
const AFilename: string |
); |
AFilename |
|
File name to examine |
CheckIfFileIsExecutable is a procedure used to examine the specified file name to see if it is executable. CheckIfFileIsExecutable is implemented for UNIX-like environments, and allows TProcess to better determine if the file can be executed on the platform or OS, and to get better error messages when it cannot.
CheckIfFileIsExecutable raises an exception with a specific mesage when the platform or OS facilities indicate it is necessary.
Use FileIsExecutable to determine of a file is executable without raising an exception.
The Exception contains the following messages (from string resources):
| lazarus-ccr.sourceforge.net |