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