inferno123 Posted October 25, 2007 Posted October 25, 2007 Does anyone know how to delete run history without restarting the machine RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU") Does the job but it requires restart Any ideas ?
Kerros Posted October 25, 2007 Posted October 25, 2007 You could try killing explorer.exe and then restarting it, that should work. Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.
inferno123 Posted October 25, 2007 Author Posted October 25, 2007 You could try killing explorer.exe and then restarting it, that should work.Thank you for tip however this is too painful step. I found out that when I press Start>Shutdown and then Cancel Run box gets cleared out.Any thoughts how to implement these steps in the script so they are invisible ?
weaponx Posted October 25, 2007 Posted October 25, 2007 Did you try running EnvUpdate ( ) after you delete those registry entries?
inferno123 Posted October 25, 2007 Author Posted October 25, 2007 Did you try running EnvUpdate ( ) after you delete those registry entries?I did try it . It does not do it . Only Start>Shutdown>Cancel works
weaponx Posted October 25, 2007 Posted October 25, 2007 How about : Run("RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True") Or this ugly thing: $drivelabel = DriveGetLabel($DrivesArr[$i]) DriveSetLabel($DrivesArr[$i] , $drivelabel)
inferno123 Posted October 25, 2007 Author Posted October 25, 2007 How about : Run("RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True") Or this ugly thing: $drivelabel = DriveGetLabel($DrivesArr[$i]) DriveSetLabel($DrivesArr[$i] , $drivelabel) None of these works unfortunately
weaponx Posted October 25, 2007 Posted October 25, 2007 Last try: Opt("WinTitleMatchMode", 4) $hWnd = WinGetHandle("classname=Progman") DllCall("user32.dll", "long", "SendMessage", "hwnd", $hWnd, "int", 0x111, "int", 28931, "int", 0)
inferno123 Posted October 26, 2007 Author Posted October 26, 2007 (edited) Unfortunately this one also does not work. Thank you for all your efforts AutoIT sniper I will keep searching, maybe I will get the solution soon Edited October 26, 2007 by inferno123
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