>Why do I have to rebuild my app. everytime I change the drive letter I keep the dbf files on. Even if I put set defualt to in my main prg file and do g:\data and put path=g:\data in the config.pfw file it still is looking for some of the data files from the directory where I built the exe file from.
VFP stores the full pathname of the tables in your dataenvironment.
What you can do about this is changing the path to the correct one in your beforeopentables event.
Like placing
gcDataDir = 'YourDataDir'
in the start of your app.
You can do what you want to get that.
e.g.
Store it in a ini
Store it in a table
Make it the working directory off your app's shortcut (I do this)
Then in the Beforeopentables
This.MyCursor.Database = [&gcData\YourDBC]