Solved

Determining a network drive UNC name

Posted on 1998-03-03
2
631 Views
Last Modified: 2012-08-13
Using MSVC++5.0, I'm writing a DLL to supply some functions to PowerBuilder that it doesn't have, such a creating and removing directories, and others.

Is there a simple method of determining the  Universal Naming Convention (UNC) of a network drive?  PB's open file dialog box doesn't give the UNC for network drives.  I'm looking for something non-visual if possible.

Thanks, Jody
0
Comment
Question by:jodyl
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 150 total points
ID: 1182996
On Windows NT, you can use WNetGetUniversalName() function. On Windows 95, take a look at
http://support.microsoft.com/support/kb/articles/q131/4/16.asp.
0
 

Author Comment

by:jodyl
ID: 1182997
Works great.  Thanks.

Since most of my users will be using Win95 I needed to go with the work around function shown in the MS support article.

Jody

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

760 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

20 Experts available now in Live!

Get 1:1 Help Now