Batch code:
Copy codeThe Code is as follows: @ echo off
: Delete historical records of "run", "Search", etc.
Reg add HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer/v ClearRecentDocsonExit/t REG_DWORD/d 00000001
Clear the input recorded in the "run" dialog box to modify the registry. These records are stored in "HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \
RunMRU branch, delete it completely, and restart. In addition, the "DocFindSpecMRU" item under the primary key displays the "Search" History in the column on the right, which can be deleted at the same time.
How can I clear the "my recent documents" record in the XP system or leave no record there?
In the run dialog box, enter the "gpedit. msc" running group policy. Expand "user configuration"> "management template"> "Taskbar and Start Menu", double-click "do not keep records of recently opened documents" in the right window, select "enabled", and press "OK "..
Modify the registry,
HKLM \ Software \ Microsoft \ windows \ curent version \ policies \
Create a new DOWNWARD key value under it. Its value is set to 1.
Restart.
Allow xp to add and automatically run the bat file
Autorunexec. bat is the bat file automatically loaded at startup. You can use NotePad to open and edit the file. This bat file is in the root directory of the C drive. You can replace the content of your file.
Registry key:
HKEY_CURRENT_USER/Software/Midrosoft/Windows NT/CurrentVersion/WinLogon double-click the "ParseAutoexec" string value on the right (if not, create a new one ), change its "value data" from the default "0" to "1" and exit the Registry to run Autoexec at startup of windows XP/2000/2003. bat
0 indicates not running. 1 indicates running.