Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Clear Recent Documents & Run

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,53187
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Clear Recent Documents & Run
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Clear Recent Documents & Run - 11/1/2007 3:01:47 AM   
  sudhir_shet

 

Posts: 8
Score: 0
Joined: 11/1/2007
Status: offline
Hi,
      I wanna carry out the below 2 tasks using VB Script. Does anyone know how to do this with VBS without usinig SendKeys?
1) Clear Recent Documents (Taskbar properties -> Start Menu Tab -> Customize -> Clear)
2) Clear Program list in Start -> Run (Taskbar properties -> Start Menu Tab -> Start Menu -> Customize -> Clear List)


Thanks...

 
 
Post #: 1
 
 RE: Clear Recent Documents & Run - 11/1/2007 3:21:48 AM   
  sudhir_shet

 

Posts: 8
Score: 0
Joined: 11/1/2007
Status: offline
Is this command below correct for clearing recent documents?

%comspec% /c echo Y | del "%USERPROFILE%\Recent\*.*"

(in reply to sudhir_shet)
 
 
Post #: 2
 
 RE: Clear Recent Documents & Run - 11/1/2007 4:08:03 AM   
  dm_4ever


Posts: 2724
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
I  believe that information is actually stored in the registry. Have you tried searching for that?

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to sudhir_shet)
 
 
Post #: 3
 
 RE: Clear Recent Documents & Run - 11/1/2007 4:45:12 AM   
  sudhir_shet

 

Posts: 8
Score: 0
Joined: 11/1/2007
Status: offline
Yes, i got the information now.
To clear the program list in Run menu, we should delete the registry entries in te below path,

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

But the only problem is that, this get cleared only after a logoff or restart!

(in reply to dm_4ever)
 
 
Post #: 4
 
 RE: Clear Recent Documents & Run - 11/1/2007 4:58:45 AM   
  Rischip


Posts: 510
Score: 2
Joined: 3/26/2007
Status: offline
The run menu is here --> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
You need to delete all of the keys.

For the recent docs I fould this -> http://danrasmussen.org/software/clear_recent.vbs

_____________________________

Rischip
Author of - The Grim Linker

(in reply to dm_4ever)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Clear Recent Documents & Run Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts