Link to home
Start Free TrialLog in
Avatar of ronvp
ronvp

asked on

Mapped drive to UNC

I like to have a routine that let me convert a mapped network drive to its UNC name
i.e.: S:\public\userdir to \\domain\Servername\public\userdir. There is a function (WNETGETUNIVERSALNAME) with windows, but this function is not supported on Win-95
Avatar of dentener
dentener

I think you should give the ScUNCFromLocalPath function a try. WNetGetUniversalName is only supported on WindowsNT platforms.

Maybe the ScUNCFromLocalPath function will work on Windows9x platforms. Search on www.msdn.microsoft.com for more information about this function.


Regards,

Paul
WNetGetConnection should be the right API for you.

Regards, Madshi.
ASKER CERTIFIED SOLUTION
Avatar of Ten13
Ten13
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ronvp

ASKER

This will teach me to check out the Delphi help files better.. Excellent answer..