?
Solved

UNC Path for a local drive

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month8 days, 2 hours left to enroll

765 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