Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Current Folder No Longer Auto-Selected
Message
From
29/04/2014 20:48:49
David Greene
Productive Solutions, LLC
California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Title:
Current Folder No Longer Auto-Selected
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01599270
Message ID:
01599270
Views:
53
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?

Many thanks.
David Greene
Productive Solutions, LLC
Los Angeles
Next
Reply
Map
View

Click here to load this message in the networking platform