Win XP registry "four brothers"

  
Today, let us approach the registry, look at the important commands on the registry menu and what role these commands play in the specific operation of the registry (this article to WindowsXP For an example, explain).

"Instructor, I often hear what primary keys, sub-keys you say, what are they? What is the relationship between them?" The instructor just entered the classroom, and Zhu Zhengyi from Changchun No. 8 Middle School issued such a question. .

"Sorry, I forgot to tell you these important concepts." The instructor apologetically said, "There are four concepts in the registry: root key, key and subkey, and value. In the first In the class, you should already know that the registry itself is composed of 5 system root keys. Of course, different Windows versions differ in this respect. For example, Windows 98 has 6 system root keys."

"Oh Is the root key in the registry in the form of a subdirectory of the main 'HKEY_' configuration unit?" Zhu Zhengyi students suddenly realized.

"Yes. The keys and subkeys do not have data attached. They are only responsible for organizing access to the data. They exist as subdirectories of user-defined or system-defined keys. The lowest value is the value. At the end of the structure, like a file in a file system, it contains the actual data used by the computer and its application. The instructor applauded the Northeastern student's response and explained it further.

Adding Features

"Because in the first lesson we have already learned about the import and export of the registry. The focus of this lesson is on some other commands on the menu, such as preparing in the registry. Add a primary key, you can do the following."
After finishing the instructor, type "regedit" in "Run", open the registry to find the folder to add the primary key; use the mouse to right click on the file to be added to the primary key Folder, this time open "Edit → New → Primary Key", enter a name for the new primary key, and then press Enter to be OK. "Of course, for novices, be sure to back up the registry before doing so to restore the original registry after a reboot." The instructor reminded everyone.

Exercise adding key values ​​


The instructor considered that the previous operation was to add a primary key, and more used in the registry is to add key values.

Then he opened the registry and said: "Now I will show you how to add key values."

1 Select the folder path to add new key values, right click to add The folder for the new key value.

2 Point your mouse at "New" and click on the type of key you want to add. These types include "String Value", "Binary Value" and "DWord" values. The newly added key value is one. The temporary key value display, enter a new value for the newly added key value, and then save and exit is OK.

Extracurricular practice: Prohibit prompts popping up frequently

"It’s time for the students to practice, how, which classmates volunteered to try?" The instructor looked at everyone.

"I, let me try." Everyone looked at the sound. It turned out to be the Chinese graduate student who was very good at the class. He walked quickly to the instructor's demo computer and said: "When everyone knows, if the remaining space of the computer disk is less than 200MB, Windows XP will pop up a "out of disk space" prompt box in the system tray area. After closing it, it will be separated. It will appear again for a while, which is a bit annoying. I try to disable the prompt box by adding a value in the registry."

This student opens "HKEY_CURRENT_USER\\Software\\" in the registry. Microsoft \\Windows\\CurrentVersion\\PolicIEs \\Explorer", right click on "Explorer", select "New → DWord Value" on the right-click menu, name this value "NoLowDiskSpaceChecks", double-click the value to set the value "Data" is set to "1".

In order to verify the correctness of this operation, the instructor will fill the D disk space to only more than 100 MB, and the dialog box did not appear again.

Modifications are not simple

Modifications are the most important step in registry operations and are often used. The registry can be used to improve system performance. Let's take a practical example to explain how to modify the registry data.

How to modify the DWord value


"It is well known that when you restart your computer after abnormal shutdown, Windows XP will automatically open the ScanDisk. But the disk is running. Before scanning, there will be 10 seconds of waiting time, and the waiting time can be shortened by using the registry."

After the instructor finishes, open the HKEY_LOCAL_MacHINE\\SYSTEM in the left window of the Registry Editor. \\CurrentControlSet\\Control\\Session Manager", find the DWord value of "AutoChkTimeOut" in the right window;

2 Double-click the value to enter the edit dialog box, and set "hexadecimal" in the "base" area. Click “Decimal” and set the value in the “Value Data” column to the appropriate data according to your needs. For example, entering “0” means there is no waiting time before the disk scan, and input “3” means The wait time before the disk scan is 3 seconds.

Extracurricular Practice: Hidden Disks

In the next student practice time, Zhang Xueping, a student of Baotou, Inner Mongolia, conducted a hidden disk drive operation under the guidance of the instructor.

1. Enter the registry editor, open "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\PolicIEs \\Explorer", and add a DWord value named "NoDrives" in the right window.< Br>

2. Double-click the value to edit it, select “Cycle” as “Decimal”. If “Value Data” is set to “1”, it means hide A disk; set “2” to indicate Hide the B drive; set to "4" to hide the C drive, hide other drive letters can be analogized by this rule, as long as the "value data" is double the previous value.

"If you don't plan to hide the disk drive letter, what should this value be?" one student asked.

"0! Just change the value to 0." The instructor said, "In fact, many functions can be implemented by modifying the registry. For example, you want to hide the recycle bin and display the control options of the control panel. Implemented here, after class, everyone can try to try similar operations."

Easily delete key values

In the registry, delete operations are often used to remove the startup program, delete the old Installer. To delete a registry key or key value, click the registry key or key value you want to delete, and on the Edit menu, execute the Delete command.

The instructor explained this in the end with the most typical unloading system self-starting project.

Open the registry editor and go to "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run". Did you see a QQ.exe key? If you don't want the QQ program to start running with the system, right-click on the key and select the "Delete" option on the right-click menu.

In order to verify the success, the instructor restarted the computer and found out that the QQ program did not run automatically with Windows startup.

Copyright © Windows knowledge All Rights Reserved