Code _dos/bat to delete the history of a run, lookup, etc. through batch implementation

Source: Internet
Author: User

Batch code:

Copy Code code as follows:

@echo off
:: Delete The history of the run, find, and so on
REG ADD hkcu\software\microsoft\windows\currentversion\policies\explorer/v clearrecentdocsonexit/t reg_dword/d 00000001


You can modify the registry by clearing the entries recorded in the Run dialog box. These records are saved in the Hkey_current_user\software\microsoft\windows\currentversion\explorer\
RunMRU "Branch, remove it completely and reboot. In addition, the "Docfindspecmru" item under the primary key, displayed in the right-hand column is the history of "find", which can be deleted together.

How do I erase the "My Recent Documents" record in the XP system or not leave a record there?

In the Run dialog box, enter "Gpedit.msc" to run Group Policy. Expand User Configuration-Administrative Templates-taskbar and Start menu, and then double-click the "Do not keep records of recently opened documents" option on the right window, and press OK.

Modify the registry,
Hklm\software\microsoft\windows\curent version\policies\
Under it, create a new downward key value that is set to 1.
Reboot can be.

Allow XP to add a boot autorun bat file
Autorunexec.bat is the boot automatically loaded bat file with Notepad to open the edit on it. This bat file is in the C-packing directory, you can replace the contents of your file.

Registry key:
Hkey_current_user/software/midrosoft/windows Nt/currentversion/winlogon Double-click the "parseautoexec" string value entry on the right (if not, create a new one). Change the value data from the default "0" to "1" and exit the registry to allow Windows xp/2000/2003 to run at startup Autoexec.bat

0 represents not running, 1 represents 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: info-contact@alibabacloud.com 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.