Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to clear the "Documents" list?

Status
Not open for further replies.

ketamine

Technical User
Jan 3, 2001
7
US
Hello,
This question is for WinNt, 2x, 9x, etc...
Does anyone have a script, or know how I can write a script to clear my "Documents" list? I'd like to clear this list ever time I log off.

Any advice would be appreciated,
thanks,
Jason
 
I believe that the MS App TweakUI has a feature that will do that for you in the Paraniod tab.
Clear document history
 
You could try this registry edit - it's supposed to clear the list of recent documents on the Start Menu when Windows exits - but I haven't tried it:

Open the registry (start\run\regedit) and find the key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

Create a new DWORD value, or modify the existing value called 'ClearRecentDocsOnExit'.

Set the value to equal '1' to enable.

Exit the registry. You may need to restart for the changes to take effect.

Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
Value Name: ClearRecentDocsOnExit
Data Type: REG_DWORD
Data: (0 = disable, 1 = enable)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top