Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the current directory to be where the executable is being run

Status
Not open for further replies.

Jooky68

Programmer
Jul 10, 2002
231
US
I am trying to change the current directory to be where the executable for my vb project is being run. This is probably easy but I just cant think of it.
 
You want the ChDir & App.Path functions. ChDir changes the current directory (but not the current drive); App.Path returns the location (directory) of the executable. Code something like:

ChDir App.Path

& you should be OK.
 
ahhh..duh thank you for the response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top