Solved

UNC Path for a local drive

Posted on 1998-08-11
3
387 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…

728 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