Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

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



Application Security Testing: An Integral Part of DevOps

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.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date