-
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?
-
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.
-
you can access/get the cur dir by using APP.PATH
which of course is the PATH property of the APPlication object
DocZaf
{;->