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

getting the path of the current application

Status
Not open for further replies.

erixire

Technical User
Jun 4, 2002
72
CA
Hi,

Is it possible to get the path of the current application? Because I use the Setup Installer provided with Visual Studio to install my application. I have included somes files in the application folder and I want to read them within my application. Is there an object or something that tells me the folder from wich the executable file is running or an object which knows the path where the user installed the application? Thanks.
 
Code:
Application.StartupPath

should do it.

--NipsMG
 
Thanks a lot NipsMG. Just to know, is there a difference between StartupPath and ExecutablePath?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top