Solved

UNC Path for a local drive

Posted on 1998-08-11
3
380 Views
Last Modified: 2010-04-30
How can I  get a UNC path name of the local drive on which
my application is running.

for e.g. My application is running on C:
I should be able to get the path name as \\UTRASH\c$\myapplication
0
Comment
Question by:umeshkhoje
3 Comments
 
LVL 2

Accepted Solution

by:
cantrell earned 50 total points
ID: 1468573
Are you looking for the current directory? If so, try the 'curdir' command/function. That will tell you the current directory.


0
 
LVL 2

Expert Comment

by:percosolator
ID: 1468574
I don't think that there is one place that you will be able to find it in.  More than likely, you are going to have to obtain your machine name and share and concatenate them with your app path.



0
 

Author Comment

by:umeshkhoje
ID: 1468575
Is there any other API call in any custom dll file which will
help me in getting the UNC path directly.

Keeping the drive control will not help.

And more over can anyone please tell me how to get
the share name from any API call.

I got the machine name but cant find any API function
for getting the share name.

Thanking you all


0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

707 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

17 Experts available now in Live!

Get 1:1 Help Now