see the ExpandUNCFilename function in Delphi help which returns the full path of a file name with the network drive portion in UNC format. Syntax: function ExpandUNCFileName(const FileName: string): string;