Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / FoxPro / Setup / February 2004

Tip: Looking for answers? Try searching our database.

Clearing the Command Window in vfp 7.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
techno - 27 Feb 2004 00:47 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.