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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the applications executable path 1

Status
Not open for further replies.

Tido

Programmer
Jul 18, 2002
8
0
0
CA
I have a program that needs to read ini/cfg files and then reads in more files based on the content of those I have the main ini/cfg file in my applications path and can retrive it but if the path to the executable changes like once this goes on a clients machine there will be problems.

is there any way in code to get the dir the exe is executed from without displaying a dialog box and saying please select the ini/cfg file locations as this would get very tedious every time u run the application
 
now why oculdnt i find that on msdn or the help section in vb.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top