Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Current Folder No Longer Auto-Selected
Message
From
30/04/2014 13:27:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/04/2014 20:48:49
David Greene
Productive Solutions, LLC
California, United States
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
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:
01599323
Views:
35
>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())

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform