Cetin,
The program does 'set default to &tdir' where tdir is the path to the DBC and DBF files. In both cases the program is started with something like 'myexe.exe c:\vcars'. The program then does the set default. It seems to me that in this case sys(5) should always return 'C:' but obviously it is not and I dont know why.
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!