Solved

Starting directory

Posted on 1998-10-22
1
129 Views
Last Modified: 2010-04-30
I have an application that resides on (X) drive & directory
which can be anything. I need to open a control file that
is contained in the same directory & drive letter. I can't
get VB to do this. In my control file I have a drive letter
& pathname which I use to do a CHDIR & it works. Is there
a way to get a file from the calling directory without having to hard code?
Thanks,
William
0
Comment
Question by:WPentecost
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 50 total points
ID: 1441156
What you need is App.Path
This will give you the drive letter and path where your executable resides.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 42
VBA to copy paste columns form one file to other 20 87
Copy a row 12 62
clicking a shape in a frame array vb6 3 45
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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

770 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