Board index » delphi » Help Obtaining Server Name (D5)

Help Obtaining Server Name (D5)

I can get a volume name (local,network,etc) by using
GetVolumeInformation(...),
how can I obtain a network server name from a mapped drive.
Using D5.

TIA

 

Re:Help Obtaining Server Name (D5)


Use:

ExtractFileDrive(ExpandUNCFileName(Path));

"Steven" <zank...@hutch.com.au> schreef in bericht
news:3923c1b1.31658612@news.hutch.com.au...

Quote
> I can get a volume name (local,network,etc) by using
> GetVolumeInformation(...),
> how can I obtain a network server name from a mapped drive.
> Using D5.

> TIA

Re:Help Obtaining Server Name (D5)


Quote
"Steven" <zank...@hutch.com.au> wrote in message

news:3923c1b1.31658612@news.hutch.com.au...

Quote
> I can get a volume name (local,network,etc) by using
> GetVolumeInformation(...),
> how can I obtain a network server name from a mapped drive.
> Using D5.

Use WNetGetUniversalName

Christo Crause

Other Threads