Results 1 to 3 of 3

Thread: How to get an App's directory

  1. #1

    Thread Starter
    Addicted Member The Phoenix's Avatar
    Join Date
    Aug 2003
    Location
    With my wife
    Posts
    142

    How to get an App's directory

    Okay, I'm sure this is a distressingly simple question, but how can I get the path of a program? I think what I want is the VB.Net equivilent of the App.Path funstion of VB6.

    What I want to do is, have a program that intereacts with files, and instead of listing the file like so: "C:\Program Files\Etc...\", I want to say: "Path\file.txt".

    Thanks in advance for any help!
    Take my love
    Take my land
    Take me where I cannot stand
    I don't care, I'm still free
    You can't take the sky from me...

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Try Application.StartupPath

  3. #3
    Junior Member
    Join Date
    Sep 2003
    Posts
    16
    You can also use CurDir()

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