Solved

Mapped drive to UNC

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

16 Experts available now in Live!

Get 1:1 Help Now