Я хочу написать сценарий, который автоматически очищает диалог «Выполнить» при каждом выходе из системы. Где хранится история?





HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
Из:
Как удалить отдельные записи из истории команд запуска
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
Никогда не используйте реестр, просто используйте Win32 SH api для его очистки.