Jump to content
Sign in to follow this  
inferno123

Clearing Run History without machine restart

Recommended Posts

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.

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

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

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  

×
×
  • Create New...