How to clear the datagridview header in C #

How to clear Windows execution history

Windows saves the list of commands we ran in the Run window. These 'Run' The command history can be viewed by clicking the drop-down list in the run window.

This story of Run Commands are stored in the registry key that is specific to each user of the computer. You can clear this command history by deleting all values ​​under this registry key.

This registry key is

How to delete the run history

To clear the command history, you can simply run the following command from the command prompt.

reg delete HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU / va / f

Note that after running the above command, you will still see the history for the current login session. Once you've signed out and signed back in, the history will no longer appear.

The tip above applies to all Windows editions (XP, Vista, Server 2003, Server 2008 and Windows 7).

Comments 0 Add a comment