Delete the code of historical records in running and searching through batch processing

Source: Internet
Author: User

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.

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.