Sorry Paul I don't know the answer, but assume that you will probably have to iterate through the drives and look for a match for matching UNC name.
The ExtractFileDrive is meant to extract the drive letter from a file name eg. D:\MyDir\Stuff.txt -> D:\ \\MyServer\MyDir\Stuff.txt -> \\MyServer\MyDir Regards, John --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/