Pascal Scripting: ExtractFileDir

Prototype:

function ExtractFileDir(const FileName: String): String;

Description:

Extracts the drive and directory parts of the given file name, excluding a trailing backslash (unless it is a root directory). The resulting string is empty if FileName contains no drive and directory parts.

See also:

ExtractFilePath