Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi Everyone....
 
I want to clear the history of RUN window ? means want to clear recent commands from RUN dialog box .
 
How can i do that ?
 
I use VS 2010 ,C# .net Framework 4.0
 
Thank You
Posted 15-Oct-12 4:23am
Comments
ryanb31 at 15-Oct-12 9:24am
   
One time? Or you want to write code to do it? It's in the registry somewhere.
geekbond at 15-Oct-12 11:51am
   
What have you tried?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Freind, try this and implement the same in your code if required:
Delete Specific Items:
Go to Start --> Run --> Type "regedit" in the Run dialog box.
When in the registry, browse to the following key:
HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>Explorer>RunMRU.
Delete the desired entry(ies) by right-clicking, and selecting "delete", or just highlight it and press the delete key. Click Yes to confirm. Double click the MRUList value and remove the letter(s) that you deleted from the list. Click OK. Close Registry Editor. You may need to restart your computer for the changes to take effect.
 
Disable History:
Go to Start --> Run --> Type "regedit" in the Run dialog box.
When in the registry, browse to the following key:
HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>Explorer>RunMRU.
Right-click the key RunMRU and choose "Permissions...".
Click "Add...".
Type "Everyone" and hit OK in the box that pops up.
Back in the Permissions (Security) dialog, choose Everyone then deny Read access.
Click OK.
Close Registry Editor. You may need to restart your computer for the changes to take effect.
 
Thanks,
Ambesha
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

In order to do this by code, you need first to know where these values are stored. Ambesha has provided this in his answer. They are in the registry in this key: HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>Explorer>RunMRU
To change these values from C#: Read, write and delete from registry with C#[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

To delete the run box history:
 

Go down to your start menu and right click on the start button.
A small menu will appear. Choose properties.
The taskbar and Start menu Properties will appear.
Go to the Start Menu tab .
Remove the tick next to Store and display a list of recently opened programs.
Press Apply and then OK.
 
hope that helps.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 381
1 Sergey Alexandrovich Kryukov 245
2 Marcin Kozub 225
3 Praneet Nadkar 217
4 /\jmot 189
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,614
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 15 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100