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

How to find folder name where an application (*.exe) is launched

Status
Not open for further replies.

rgrayclamps

Mechanical
Joined
Aug 6, 2004
Messages
376
Location
US
If I have an VB application (*.exe file), how can I find the location (path) in the program code where the application is launched? For example, if I have an excutable file (test.exe) in C:\Temp folder and I launch this application by double-clicking it in explorer, does the codes in this VB program have access to information (C:\Temp) where this application is launched?

Thanks,

Alex
 
Try App.Path.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top