Solved

Starting directory

Posted on 1998-10-22
1
127 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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 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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now