Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to make life just a little easier
Message
From
27/09/1997 11:44:22
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Trying to make life just a little easier
Miscellaneous
Thread ID:
00051965
Message ID:
00051965
Views:
62
I got tired of having to change directories every time I start VFP, so I made the following changes to my system to return to the last directory I was working in everytime I start VFP. Hope some of you find this a time saver //:^)

CONFIG.FPW
---------------------
COMMAND=DO f:\vfpwork\startup


STARTUP.PRG
-------------------------
ON SHUTDOWN DO f:\vfpwork\shutdown
IF FILE('f:\vfpwork\lastdir.mem')
REST FROM lastdir.mem ADDI
SET DEFA TO (lastdir)
ENDIF


SHUTDOWN.PRG
-----------------------------
SET SAFE OFFf
STORE sys(5)+sys(2003) TO lastdir
CD f:\vfpwork
SAVE TO lastdir ALL LIKE lastdir
QUIT
L.A.Long
ProgRes
lalong1@charter.net
Reply
Map
View

Click here to load this message in the networking platform