Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB5,VB6
Expertise: Intermediate
Oct 3, 2001

ClearRunHistory - Clear Windows Run history

' Clear the Run History
' Notes:
'  1) This routine requires the DeleteRegistryKey and CreateRegistryKey 
' routines,
'     you can find them in the CodeBank
'  2) The MRU list is kept available until Explorer is restarted
Public Sub ClearRunHistory()
    Const HKEY_CURRENT_USER = &H80000001
    Dim sKey As String
    
    sKey = "Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU"
    ' delete the key that contains the path of all the files in the history
    DeleteRegistryKey HKEY_CURRENT_USER, sKey
    ' recreate the key, empty
    CreateRegistryKey HKEY_CURRENT_USER, sKey
End Sub
Marco Bellinaso
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date