System.SysUtils.ExpandFileName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExpandFileName(const FileName: string): string;

C++

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

Properties

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

Description

Returns the full path name for a relative file name.

ExpandFileName converts the relative file name into a fully qualified path name. ExpandFileName does not verify that the resulting fully qualified path name refers to an existing file, or even that the resulting path exists.

Note: ExpandFileName does not support UNC format. To expand to a UNC file name, use ExpandUNCFileName.

See Also


Code Examples