I would like to have vfp7.0 start without the "Command Window"
having the previous session showing. I know that right clicking in
the window and selecting "clear" gets rid of a previous session, but
would like to default this to a "cleared" state.
The online help says this
Persistence of Contents
The contents of the Command window are saved to a file, _command.prg,
automatically unless the noRecentDocHistory system policy is enabled
or you are not using a Foxuser resource file. You can clear the window
by selecting Clear from the Command Window shortcut menu. To enable
its use by multiple instances of Visual FoxPro, the file is only read
when starting Visual FoxPro, and written when exiting Visual FoxPro.
The file is located in the same directory as the Foxuser resource
file. You can determine or change the location of the resource file
from the Options dialog box, File Locations tab, or via language using
SET("RESOURCE") or SET RESOURCE respectively.
So where do I find this "noRecentDocHistory system policy is enabled"
mentioned above. If I disable the "noRecentDocHistory" then it sounds
like the command window will be clear each time vfp is started.
I did find an old message where someone recommended replacing the
_command.prg with a blank file and write-protecting it. Haven't tried
that though. Would rather find the disable button.
Stefan Wuebbe - 27 Feb 2004 08:06 GMT
> So where do I find this "noRecentDocHistory system policy is enabled"
> mentioned above. If I disable the "noRecentDocHistory" then it sounds
[quoted text clipped - 3 lines]
> _command.prg with a blank file and write-protecting it. Haven't tried
> that though. Would rather find the disable button.
That's a good way since it affects Vfp itself only.
"NoRecentDocsHistory" (/w an additional "s") is a Windows policy,
affecting the entire "current user". It is stored in the Win registry:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
See also MSKB Q301691
hth
-Stefan