Show: Delphi C++
Display Preferences

System.AnsiStrings.ExtractFileDir

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExtractFileDir(const FileName: AnsiString): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall ExtractFileDir(const System::AnsiString FileName)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Extracts drive and directory parts of 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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance