Sign in to follow this  
Followers 0
inferno123

Clearing Run History without machine restart

9 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

Did you try running EnvUpdate ( ) after you delete those registry entries?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

How about :

Run("RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True")

Or this ugly thing:

$drivelabel = DriveGetLabel($DrivesArr[$i])

DriveSetLabel($DrivesArr[$i] , $drivelabel)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Last try:

Opt("WinTitleMatchMode", 4)
$hWnd = WinGetHandle("classname=Progman")
DllCall("user32.dll", "long", "SendMessage", "hwnd", $hWnd, "int", 0x111, "int", 28931, "int", 0)

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by inferno123

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