Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

UNC Path for a local drive

Posted on 1998-08-11
3
Medium Priority
?
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

636 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