Show: Delphi C++
Display Preferences

System.SysUtils.ExtractFilePath

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExtractFilePath(const FileName: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall ExtractFilePath(const System::UnicodeString FileName)/* overload */;

Contents

Properties

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

Description

Returns the drive and directory portions of a file name.

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.

This function works for multi-byte character systems (MBCS).

See Also


Code Examples

Personal tools
Translations