>Under Windows XP the little things were easier. I could right-click to open a DBF and it's folder became the default folder automatically. Any action resulting in a new file (like COPY TO NEWFILE.DBF WITH CDX FOR [filter]) would create a new DBF file in the same folder.
>
>Under Windows 7, VFP 9 (SP2) would perpetually try to run a DBF as if it were a PRG file and a tweak to a registry setting (adding SHELLOPEN) cured the attempt at compiling so now a right-click on a DBF file and Open With (VFP9) will bring up a browse window for the selected DBF. But the current folder is C:\Windows\System32 and there are permissions issues let alone hunting requirements if I don't remember to enter "CD JUSTPATH(DFBF()) [enter]" at a command prompt to achieve what I used to have without the extra effort.
>
>I can't find how to get the folder of a newly opened DBF to be the default folder. Using the Default Directory in VFP under Tools > Options > File Locations only seems to provide a different, fixed folder. Does anyone know what needs to be tweaked to get the folder of the newly opened DBF to be the default folder with VFP 9 under Windows 7?
This never worked. VFP always opened where it would.
You may try to see if the .prg specified in the _startup (in config.fpw) executes after the table is open. If so, you can issue, in that prg, a
set defa to (justpath(dbf())