• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 670
  • Last Modified:

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
0
ronvp
Asked:
ronvp
1 Solution
 
dentenerCommented:
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
0
 
MadshiCommented:
WNetGetConnection should be the right API for you.

Regards, Madshi.
0
 
Ten13Commented:
In the Delphi unit SysUtils there is a rutine ExpandUNCFileName that does the trick. Also under Win95.

- Martin
0
 
ronvpAuthor Commented:
This will teach me to check out the Delphi help files better.. Excellent answer..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now