Solved

Mapped drive to UNC

Posted on 2000-04-19
4
616 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using FastMM4... should I enable MMX option? 9 76
Delphi OLE Error 8 96
How to fill array with TArray.Create? 14 79
Machine not responding during CopyFile() 3 89
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now