System.AnsiStrings.ExpandUNCFileName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExpandUNCFileName(const FileName: AnsiString): AnsiString;

C++

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

Properties

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

Description

Expand filename to fully qualified filename.

ExpandUNCFileName expands the given filename to a fully qualified filename. This function is the same as ExpandFileName except that it returns the drive portion of the filename in the format '\\<servername>\<sharename>' if that drive is actually a network resource instead of a local resource. Like ExpandFileName, embedded '.' and '..' directory references are removed.

See Also