?
Solved

UNC Path for a local drive

Posted on 1998-08-11
3
Medium Priority
?
392 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 100 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

864 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