|
-
May 23rd, 2007, 01:21 AM
#1
Thread Starter
Member
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
-
May 23rd, 2007, 01:24 AM
#2
New Member
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.
-
May 23rd, 2007, 02:01 AM
#3
Thread Starter
Member
Re: How to find the path to the current directory where the program is located?
Hey
thx blackbox.. ill try it out
cheers
Abhilash
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|