I would suggest you to put your DBCs,DBFs,CDXs in a subdirectory of your app directory so that you could make use of the SET PATH command.
If I have c:\myapp as my app directory, I should have C:\myapp\dbfiles and put all db files there.
In my main program, I have this one:
SET PATH TO dbfiles\
OPEN DATABASE mydatabase EXCLUSIVE
VALIDATA DATABASE RECOVER
HTH
>Hi
>
>My data bank(*.dbc), was built in C:\FACTURAC,
>everything works well in this directory,
>and if I do a 'Validate Database' it says that the Container is valid.
>
>Meanwhile, when i copy the entire directory C:\FACTURAC to C:\COPIACFAC, for example,
>and do a 'Validade Database' the VFP says that it can not find certain
>tables,
>and when I issue certain commands,
>the VFP asks for the whereabouts of that table.
>
>It seems that the Database has information from C:\FACTURAC,
>and dislikes changing places.
>
>How can I make the Database work (well) in any directory?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."