datkewlguy 0 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. Share this post Link to post Share on other sites
bshoenhair 0 Posted April 9, 2005 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