System.SysUtils.ExpandUNCFileName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExpandUNCFileName(const FileName: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall ExpandUNCFileName(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 of a file name in UNC format, if appropriate.

ExpandUNCFileName returns the fully qualified file name for a specified file name.

Note: ExpandUNCFileName returns a fully qualified path name using Universal Naming Convention for network files. For files on local disks, ExpandUNCFileName is equivalent to ExpandFileName. In a UNC file name, the drive prefix is replaced with the name of the network resource to which the drive is mapped. For example, if the working directory is J:\ourdir and drive J is mapped to \\ourserver\ourshare, ExpandUNCFileName('ourfile') returns "\\ourserver\ourshare\ourdir\ourfile".

Note: On Linux and MacOS, ExpandUNCFileName is always equivalent to ExpandFileName.

See Also