Results 1 to 3 of 3

Thread: How to find the path to the current directory where the program is located?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    63

    Question 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

  2. #2
    New Member
    Join Date
    Apr 2007
    Posts
    8

    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    63

    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
  •  



Click Here to Expand Forum to Full Width