RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.ExpandUNCFileName Function

Expand filename to fully qualified filename.

Pascal
function ExpandUNCFileName(const FileName: AnsiString): AnsiString; overload;
C++
AnsiString ExpandUNCFileName(const AnsiString 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!