Windows Maintenance registry clearing (1)

Source: Internet
Author: User

Generally, Windows has many protection measures. After the system is started, the registry cannot be copied, deleted, or edited unless a valid tool is used. Therefore, registry errors rarely occur. However, Microsoft's Windows is too big to avoid damage to the Registry file. For example, when running a program, the system prompts "cannot find *. dll, OLE control cannot be found, or the system prompts "application cannot be found to open this type of document" when you click a document. Otherwise, the hardware may fail to work normally, windows cannot even be started. It can be seen that registry maintenance is very important to ensure the stable operation of the program.

1. Run the Registry

To maintain the registry, you must first learn to run the registry. Select Start-> Run-> enter 'regedit '. After confirming, you can see the registry. 1)


Figure 1

Ii. Registry cleaning

With the frequent installation and deletion of programs, the Registry size will increase. This not only wastes hard disk space, but also affects the system startup speed and the Registry access efficiency in the program running. To this end, the first thing to do for registry maintenance is to clear it.

1. Reconstruction and cleaning

The Registry file is similar to a database record. When you delete a key value, you only delete the ID of this item, but the actual information is still in the Registry file, of course, the space occupied by the key value will not be released. The result is that the size of Windows will increase significantly after a period of use, and using the registry reconstruction method can effectively reduce the weight of the Registry.

First, run the regedit program in Windows, export the entire registry from the registry menu, and save it as new. reg. Then, use the DOS boot disk to enter the pure DOS state and run the "C: \ Windows \ regedit/c new. reg" command to recreate the registry. The parameter "/c" indicates that the entire registry is regenerated from the file specified later. The reconstructed registry file is usually much smaller than the original one, so the registry can be optimized.

2. Delete the Registry File

There are a lot of useless things in the Registry. In this case, you can find and delete the deleted child keys under the "HKET_LOCAL_MACHINE \ Software" and "HKET_CURRENT_USER \ Software" primary keys, you can also delete unnecessary key values. For example, the Windows tip corresponding to "HKET_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ explore \ Tips" and the time zone corresponding to "HKET_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ TimeZone" are displayed. the language types and input methods corresponding to "HKET_LOCAL_MACHINE \ System \ CurrentControlSet \ Control \ Keyboardlayouts", etc, you can delete them as needed.

3. Delete invalid file associations

The file-related content in the Registry file is stored under the HKEY_CLASSES_ROOT key, where the-z section is used to define the file type, and the A-Z section is used to record the application that opens the file. Generally, if no content is found under the sub-key Command after the suspicious key value is enabled in the second part, the key value is null. You can also run the "File Manager-> View-> Option-> file type" command to view projects that use the universal file icon. If the program used to open the file does not exist, delete the key.

4. Delete residual key values of uninstalled Software

After many software are uninstalled, some useless information is left in the Registry file. They are generally stored in "HLEY_LOCAL_MACHINE \ Software" and "HKEY_CURRENT_USERS \. DEFAULT \ Software. Find the residual information of the software that has been uninstalled and delete it permanently.

5. Delete unnecessary DLL files

You can use the registry to find useless DLL file information or VxD file information. deleting them can improve the system running efficiency. The specific method is to open "KHEY_LOCAL_MACHINE \ Software \ Microsoft \ CurrentVersion \ SharedDLLS" in the registry. The project contained in this subkey indicates the number of applications that share the DLL file, if the value corresponding to a DLL file is 0, it indicates that it is no longer useful to the system. Delete it with no worries.

In addition to the methods described above, you can also use professional Registry optimization and weight loss tools such as Super Rabbit Registry optimization software, RegClean, Registry Optimizer to complete Registry clearance. Since these software is very simple to use, I will not detail it here. If you are interested, try it on your own.

Iii. Backup Registry

The registry stores the most important information of the Windows system, but it is also one of the keys that affect system stability. Many software faults are related to the Registry, therefore, backing up the registry becomes an important solution to many problems. Next we will look at how to back up the registry.

1. Manually back up the Registry

When using the registry, we must develop good habits. Do not forget to back up the registry, especially when installing the software ). It is recommended that you back up each time you install the software and name it a different reg file. If you find that the software is not good, do not forget to double-click the backup reg registry backup file after you uninstall the software. Although manual backup of the Registry is a very annoying thing, it is indeed a very convenient measure, especially when the Windows GUI cannot be accessed, manual recovery shows its powerful power.

A. Windows 9x/Me registry backup

In Windows 9x/Me, the bottom layer of the Registry consists of System. dat and User. dat. They are generally stored in the Windows directory. If you select "User-customizable preferences and desktop settings" in the "password" on the control panel, the system will create your own User for each User. dat file, which is stored in the "C; \ Windows \ Profiles \ Username" directory. If you have backed up these files, the Registry is backed up. Note that for security reasons, System. dat and User. dat file attributes include system, hidden, and read-only attributes. Therefore, when backing up a file in Windows, you must cancel these attributes before copying the file. If the file is copied in DOS, you can use the following command to remove the file attributes:

Attrib system. dat-r-h-s
Attrib user. dat-r-h-s

B. Windows 2000/XP registry backup

The system part of the Windows 2000/XP registry file is stored in the "C: \ Winnt \ System32 \ Config" folder, and the user configuration file information is saved in "C: \ Documents and Settings \ Username "folder. Because of the Windows protection mechanism, we cannot directly copy it, so we need to boot into the DOS system or install Windows 9x (dual system) on the computer for backup. However, you must note that if Windows 2000/XP adopts the NTFS partition structure, you must read the NTFS tool specially. Otherwise, you cannot read the files in the NTFS partition.

2. Use the Microsoft backup program to back up the Registry

If the above manual backup is troublesome, you can back up the registry information through the built-in backup program in Windows.

A. Backup in Windows 9x/Me

The "Microsoft backup program" in Windows 9x/Me is not a default installation program, so we need to add this program through the "Add/delete program" command in the control panel. After the installation is complete, go to the "Start-> Program-> attachment-> System Tools" program group and run the "backup" command. Then, we can back up the registry following the steps below.

Step 2: Click the Backup tab, select the directory of Windows 9x/Me in the backup content area, and select the file to be backed up in the right window, such as System. dat, User. dat.

Step 2. In the "backup to where" dialog box, select the target location and file name for storing the Registry backup. At this time, it is best to re-create a registry storage directory on the hard disk.

Step 2. Click "start" to back up the Registry in Widnows.

B. Backup in Windows 2000/XP

Although Microsoft backup programs are also provided in Windows 2000/XP, there is no way to back up the Registry directly. You can only back up the so-called system status, which also includes the registry. For a backup tool of Windows 2000/XP, you can run the "Start> program> accessories> System Tools> Backup" command to activate it, you can also enter "ntbackup" in the running window to start the backup program.

Enter the Backup tab in the window shown in figure 2, and then select "system status. Generally, the system status data includes registry, COM + class registration database, startup file, and other information. However, you cannot back up one of these components separately, therefore, sometimes the files backed up are very large, which requires your attention.


Figure 2

3. Export the registry using the Registry Editor

In addition to editing the registry, the Registry Editor can also export the Registry to back up the registry. When using the Registry Editor to export the registry, select the Registry branch to export, such as "HKEY_CURRENT_USER \ Control Panel", and then select the "Export Registry File" option under the "Registry" menu, in this dialog box, enter the corresponding file name and path, and click "save" to back up the selected registry branch. We can also back up the entire registry, export the file in text format, and view it in notepad and other editors. However, this method is more practical for Windows 9x/Me, because the regedit program can be used in both Windows and DOS, therefore, the registry can be easily restored when the system cannot access the graphic interface.


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.