How to find the path to the current directory where the program is located?
Hi!
I am developing a tool based on vb.net. in one of the procedures, i need the path to the folder where the tool will be located as i need to access an excel file which will be located in the same folder.
Is there any method to get this path other than getting it from the user. ??
Please advise
cheers
Abhilash
Re: How to find the path to the current directory where the program is located?
Hi,
I am quite new to VB .NET.
Maybe this can help you. I am using it to load an access database from the same path where the application is:
Application.StartupPath
This will give you the path where the application is running from.
Try it out.
Re: How to find the path to the current directory where the program is located?
Hey
thx blackbox.. ill try it out
cheers
Abhilash