Clear Recent Documents – Log off
Tagged Under : clear recentdoc, Recent Documents, VBScript, windows, Windows XP
Version: 13.4
Revision: 43 Build 16
Clear ‘Recent Documents’ – Log off
Introduction: sometime in our lives, we don’t want to fiddle or modify our registry library – just to delete windows ‘recent documents’. Instead, there is a script which does this job for you…
1.] Download notepad++ from the original author or from a mirror and install the software.
——————————-
http://sourceforge.net/projects/notepad-plus/
http://filehippo.com/download_notepad/
——————————-
2.] Copy this script into your notepad and save it as a “.vbs” extension.
Enable – Clear Recentdoc @ log off
—Copy Source Code—
'Author: Lair360
'Version: 13.2
'Revision: 35 Build 16
'Clear Recentdoc @ log off
'-------------------------------------------
On Error Resume Next
Wscript.Echo "This script will clear all recentdoc @ log off"
Dim objShell, objFileSystem
Set globalnews=WScript.CreateObject("WScript.Shell")
nret1=globalnews.Run("cmd /C reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ /v ClearRecentDocsOnExit /t REG_DWORD /d 1 /f",0,TRUE)
nret2=globalnews.Run("cmd /C reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\ /v ClearRecentDocsOnExit /t REG_DWORD /d 1 /f",0,TRUE)
'-------------------------------------------
WScript.Echo "Please reboot your computer or log off..."
'VBScript Ends
—End Source Code—
Copyright 2001-2009 Lair360
Enable – Clear Recentdoc @ log off
—Copy Source Code—
'Author: Lair360
'Version: 13.2
'Revision: 35 Build 16
'Clear Recentdoc @ log off
'-------------------------------------------
On Error Resume Next
Wscript.Echo "This script will disable: clear all recentdoc @ log off"
Dim objShell, objFileSystem
Set globalnews=WScript.CreateObject("WScript.Shell")
nret1=globalnews.Run("cmd /C reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ /v ClearRecentDocsOnExit /t REG_DWORD /d 0 /f",0,TRUE)
nret2=globalnews.Run("cmd /C reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\ /v ClearRecentDocsOnExit /t REG_DWORD /d 0 /f",0,TRUE)
'-------------------------------------------
WScript.Echo "Please reboot your computer or log off..."
'VBScript Ends
—End Source Code—
Copyright By Lair360







