#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    11
    Rep Power
    0

    Get current directory


    I am writing a vb program, only my 1 day using vb. Is there a way that the program can get the current path that it is running in?

    Say if the program was running in some wierd directory is there a way to have the program get the current directory that it is executing?

    I'm sure this is simple, but I am new to vb, sorry.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    11
    Rep Power
    0
    App.Path I found it
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2008
    Posts
    1
    Rep Power
    0
    Originally Posted by BoscoJones
    App.Path I found it
    It works Yaa.
    Thanks for your help
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Location
    Sydney, Australia
    Posts
    86
    Rep Power
    13
    CurDir

    app.path gets the path of the executable
  8. #5
  9. Type Cast Exception
    Devshed Supreme Being (6500+ posts)

    Join Date
    Apr 2004
    Location
    OAKLAND CA | Adam's Point (Fairyland)
    Posts
    14,954
    Rep Power
    8617
    The original post five years ago seems to be explicitly asking for the path of the executable ... in this case curdir cannot be relied upon for that
    Last edited by medialint; June 19th, 2008 at 09:05 PM.
    medialint.com

    “Today you are You, that is truer than true. There is no one alive who is Youer than You.” - Dr. Seuss

IMN logo majestic logo threadwatch logo seochat tools logo