Results 1 to 3 of 3

Thread: relative directories?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    11

    Question

    Is there a way to read a file from a relative directory?

    For example, I have this executable in "C:\Projects\". And it has to read a file in the directory "C:\Projects\Db\". I want to eventually move the executable and the contents in the "Db" directory onto a CD-rom. How do I use relative directories instead of absolute directories? Is there a way to set CurDir to the directory that contains the executable?

  2. #2
    Lively Member
    Join Date
    May 2000
    Posts
    67
    Well i don't know what kind of file you want to read
    but yes there is a way.

    rather that give the full path ("c:\Dir1\db\file.ext")
    just give it the relative path ("db\file.ext")

    I often do that with database.
    If possible please provide codes.
    Process by example is the best way to learn.

  3. #3
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    you can access/get the cur dir by using APP.PATH
    which of course is the PATH property of the APPlication object

    DocZaf
    {;->


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