views:

604

answers:

4

I want to write a script which cleans the 'run' dialogue automatically every log off. Where is the history stored?

A: 

Hi, why reinvent the wheet? :) Check this out http://lifehacker.com/5058724/mru+blaster-clears-out-recently-used-lists-all-over-your-computer

Vaibhav
Reinvent the wheel because it is more fun
Vincent McNabb
+1  A: 
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
Vincent McNabb
+4  A: 

From:

How to Remove Individual Entries from Run Command History

Where is the Run MRU (Most Recently Used) List?

The RUNMRU list is stored in the Windows Registry in the following location:

HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ RunMRU\

Is There a Program to Delete Individual Entries from the RUNMRU List?

Many of my customers would rather not edit the Windows registry to remove these individual entries, so I setup a VBScript that you can download and run to delete individual commands from this list. Follow these instructions to download and use this program to clear unwanted entries from the Run Command history.

1) Click on the following link and download the EditRunMRUList.vbs script to your desktop

Download EditRunMRUList.vbs

aku
A: 

Never use registry, just use Win32 SH api to clean it.

Interested in explaining?
Nick Stinemates