Subject: Re: [DUG]: UNC Path Names
From: "Sandeep" <[email-masked]>
To: Multiple recipients of list delphi <[email-masked]>
Date: Fri, 16 Nov 2001 14:11:25 +1300

On 16 Nov 2001, at 13:25, [email-masked] wrote:

> G'Day,
> 
> If I have a UNC directory path (eg '\\MyServer\MyDir') that is mapped to a Drive
> letter, how can I extract the drive letter ?
> I have tried
> MyDriveString := ExtractFileDrive('\\MyServer\MyDir');
> but no luck ...
> any ideas ? I have tried trailing "\" etc but still no luck

I think u'll have to use WNetGetUniversalName to get the info. Be 
careful if u are going to use it on 95/98 there's a bug  in it and u'll 
find a workaround as suggested by M$ (and it works) in Windows 
SDK help file.

Regards

Sandeep

Software Developer
CFL
[email-masked]
http://www.cfl.co.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [email-masked]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [email-masked] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/