RAD Studio VCL Reference
AnsiStrings.ExtractFileDir Function

Extracts drive and directory parts of filename.

function ExtractFileDir(const FileName: AnsiString): AnsiString; overload;
AnsiString ExtractFileDir(const AnsiString FileName);

ExtractFileDir extracts the drive and directory parts of the given filename. The resulting AnsiString is a directory name suitable for passing to SetCurrentDir, CreateDir, etc. The resulting AnsiString is empty if FileName contains no drive or directory parts. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!