Solved

Mapped drive to UNC

Posted on 2000-04-19
4
636 Views
Last Modified: 2010-07-27
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
Comment
Question by:ronvp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:dentener
ID: 2733572
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
 
LVL 20

Expert Comment

by:Madshi
ID: 2739620
WNetGetConnection should be the right API for you.

Regards, Madshi.
0
 
LVL 2

Accepted Solution

by:
Ten13 earned 200 total points
ID: 2739761
In the Delphi unit SysUtils there is a rutine ExpandUNCFileName that does the trick. Also under Win95.

- Martin
0
 
LVL 1

Author Comment

by:ronvp
ID: 2743759
This will teach me to check out the Delphi help files better.. Excellent answer..
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question