Results 1 to 4 of 4

Thread: File Location / Program Location

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    7

    Question

    I'm doing a simple program in which i save my configuration in a plain text file. I don't have a problem with the input or output, however, since I want to be able to package my program and send it around, I need to be able to allow my program to find out where it is installed to. This is so that I don't have to specify a path to my config file, rather, I want my program to find out where it is installed and put that file in that location. Does anyone know how to do that?

    Mike Dryden

  2. #2
    Member
    Join Date
    Aug 1999
    Posts
    52

    Smile

    hi,

    I think u can use APP.PATH
    it will give u the full path of where ur program is running.
    hope this is clear.
    anydoubts let me know.

    kandan.

  3. #3
    Addicted Member
    Join Date
    Mar 2000
    Location
    Netherlands
    Posts
    128

    I use APP.PATH

    I always use APP.PATH and it works great
    Remember Programmers don't sleep

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    7
    Worked prefectly. Thanks alot guys.

    Mike

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