Pascal Scripting: ExtractFilePath

Prototype

function ExtractFilePath(const FileName: String): String;

Description

Extracts the drive and directory parts of the given file name, including a trailing backslash. The resulting string is the leftmost characters of FileName, up to and including the colon or backslash that separates the path information from the name and extension. The resulting string is empty if FileName contains no drive and directory parts.

See also

ExtractFileDir