Executable working directory

sreyes27

Registered User.
Local time
Yesterday, 21:12
Joined
Aug 1, 2008
Messages
13
I am new to VB development so my question is an easy one: How do I set the current working directory for my visual basic application? Let's say my exe resides at d:\dev\vb\folder1 and so when I execute my exe from a DOS prompt at that directory, I want the current working directory to be that directory (or wherever the exe resides at). I am aware of 'App.Path' and CurDir but not to get the current working directory where the exe resides.

Thanks!
 
In Access is translates to CurrentProject.Path
 
I am new to VB development so my question is an easy one: How do I set the current working directory for my visual basic application? Let's say my exe resides at d:\dev\vb\folder1 and so when I execute my exe from a DOS prompt at that directory, I want the current working directory to be that directory (or wherever the exe resides at). I am aware of 'App.Path' and CurDir but not to get the current working directory where the exe resides.

Thanks!

Are you talking about Microsoft Access or are you talking about an actual Visual Basic program? If the latter I think you should have posted it to the VB forum instead of the Access General forum.
 
I believe you are correct, I apologize. But I think I found it anyway:
ChDir App.Path

In my urgent haste for an Access application, I didn't really think about where I was posting my question.

Thanks!!!
 

Users who are viewing this thread

Back
Top Bottom