Question finding directory of my program

Terzaghi

Member
Joined
Feb 25, 2010
Messages
8
Programming Experience
Beginner
hi guys! a simple question here... =D

how do i get the directory of which my program is running as string? like "C:\whatever\" thanks ahead!
 
This will give you the directory that your program is running
VB.NET:
Application.StartupPath
This will give you the filename of the program as well as the directory.
VB.NET:
Application.ExecutablePath

Hope this helps

Satal :D
 
Back
Top