Sign in to follow this  
Followers 0
datkewlguy

clear run history

2 posts in this topic

$path = "HKEY_USERS\S-1-5-21-1409082233-1343024091-1801674531-1003\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU"

For $i = 97 to 122
    $read = RegRead($path, Chr($i))
If $read <> "" Then 
    RegDelete($path, Chr($i))
Else
    RegDelete( $path, "MRUList")
    ProcessClose("explorer.exe")
    Sleep(1000)
    MsgBox(0, "Run History Cleared!", "Your run history has been cleared")
    Exit
    endif
Next

if anyone knows an easier way to refresh without closing explorer, that and all other improvements would be greatly appreciated.

Share this post


Link to post
Share on other sites



Should use "HKCU" instead of "HKEY_USERS\S-1-5-21-1409082233-1343024091-1801674531-1003".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0