Solved

Starting directory

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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

895 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

12 Experts available now in Live!

Get 1:1 Help Now