datkewlguy Posted April 9, 2005 Posted April 9, 2005 $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.
bshoenhair Posted April 9, 2005 Posted April 9, 2005 Should use "HKCU" instead of "HKEY_USERS\S-1-5-21-1409082233-1343024091-1801674531-1003".
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now