Registry and its backup and recovery

Source: Internet
Author: User
Tags constant contains ini key safe mode window backup
Backup | recovery | Registration FORM

The substitution of Windows9x for DOS has become an option for the operating system. With the richness of the function, the details of windows9x need to be managed much more than DOS. Users cannot adjust the configuration and status of Windows today only by modifying AutoExec or CONFIG. They need to be stored, sorted, and edited in a new way. As a result, countless users to "change" the Heart Big move registry came into being. Users through the use, thus more in-depth understanding and mastery of windows9x. Because the registry is used in Windows9x, users can flexibly configure the hardware and software of the computer system according to their own requirements.

Windows Registry 1. What is a registry?

The registry is an internal database of Windows and is a large, tree-layered database. It accommodates all configuration information for applications and computer systems, initialization information for systems and applications, association relationships between application and document files, descriptions of hardware devices, status and attributes, and various state information and data. A variety of parameters are stored in the registry that directly control the startup of Windows, the loading of hardware drivers, and the operation of some Windows applications, which play a central role throughout the Windows system. It includes the following elements:

(1) Software and hardware related configuration and status information, the registry contains the application and resource Manager shell of the initial conditions, preferences and unload data.

(2) The setup of the entire system of the networked computer and the association of various licenses, file extensions and applications, and the description, status, and attributes of the hardware components.

(3) Performance records and other underlying system state information, as well as some other data.

If the registry is compromised, the light causes the windows to be abnormal during startup, and heavy users can cause complete paralysis of the entire system. Therefore, it is important for Windows users to correctly recognize, use, and recover the registry, especially in the case of timely backups and problems.

2. Registry file:. Dat

Windows98 all registry files into 2 files System.dat and User.dat. They are binary files and cannot be opened for viewing with a text editor. They are stored in the Windows directory and have implicit, system, and read-only properties. System.dat contains computer-specific configuration data, such as information about installed hardware and device drivers. User.dat contains user-specific data, such as desktop settings, wallpaper and window color settings. The location of the User.dat file is located in the c\\windows\\profiles\\ user name when logged in as a username, and the system also retains a default User.dat file in the C\\windows directory for new users to use.

Description: System.da0 and user.da0 These two files belong to Windows95 and are backup files of the registry, which are created after each successful startup of the system. In Windows98, the Registry Checker makes the backup file a CAB file.

Second, Registry Editor--registry Editor

The registry opens in a simple way, clicking on the Windows Start button to find run and left mouse click. In the Pop-up Run dialog box to fill in the regedit, press the "OK" button.

As we can see, in the registry, all data is organized in a tree-like form with keys and subkeys, very similar to the directory structure. Each key contains a specific set of information, and the key name of each key is related to the information it contains.

2. Basic operation of Registry Editor

Registry Editor has some basic operations commands, where you can use the current desktop as an example to illustrate the basic operation of Registry Editor.

(1) Open HKEY_CURRENT_USER\\Control Panel\\desktop\\windowmetrics, in the right window is some name and data.

(2) Right-clicking the right pane of the editor pops up a shortcut menu that you can select to create a primary key, a string, a binary value, or a DWORD value.

(3) Right-clicking the desktop keyword in the left pane of the editor will pop up another shortcut menu where you can create a new primary key, string value, binary value, or DWORD value, as well as search, delete, and rename operations.

(4) Double-clicking the keyword name in the right pane of the editor will pop up an edit window where you can adjust the value of the constant, or delete the constant, and rename, for example, by double-clicking the string "screensaveactive" and popping up a dialog box like Figure 2.

Iii. Backup and restore of registry

When installing new applications or adding new hardware that can mess up the system's registry, causing accidents, you should regularly back up the User.dat and System.dat files (editor: Before making registry changes, it is strongly recommended that you back up the registry to prevent the system from being accidentally altered by incorrect procedures).

In the Windows directory in Windows98, there are still System.dat and User.dat two files to hold the system registry information. The following author based on their own experience to talk about the registry in the Windows98 of backup and recovery of several common methods.

1. Direct Backup and Recovery

This is a very primitive way, That is, directly to the required System.dat and User.dat two copies of files stored in a designated directory on the hard disk or directly to the floppy disk as a backup, restore the backup to overwrite the back of the original can be, of course, in the backup and restore all the two files read-only and hidden properties of the corresponding modification operations, so that hidden files displayed.

Note: If the system is paralyzed due to registry problems, the boot can not enter the Windows system, you can use the emergency Startup disk into the WINDOWS98 with the DOS interface, with the normal DOS operation to the existence of a hard disk or floppy backup cover back to the original, restore the backup registry data.

2. The export and introduction of Registry Editor

After running Regedit.exe to open the Windows98 registry, you can use the export and import features of the registry to back up or restore registry information. To do this: in the Registry Editor window, click the "registry" Drop-down menu in the upper-left corner, click on the "Export registry file ..." Item, in the Export Table File dialog box that appears, type the file name and location of the registry you want to back up, and then press the Save button. When you need to restore the registry, open Registry Editor in the same way, when you open the Registry Drop-down menu, click the "Introduce registry file ..." Item, select the backup file that you want to restore in the dialog box that appears, and then press the "open" button to restore the table backup back to the Windows system.

Note: This method is mainly suitable for Windows system has not been paralyzed or can be used in Safe mode to start the WINDOWS98 system to restore the registry, such as because of registry problems to access the Windows system, then the law is powerless.

3. Automatic backup of the system's registry

In Windows98, the ability to back up registry data automatically at each boot in Windows 95 with a system.da0 and user.da0 name is canceled, and a new compressed file with a suffix of. Cab (Cabinet) is added as a backup to the registry. , the specific use is as follows:

The backup process is done automatically by the WINDOWS98 system. When the user first boot on the day, Windows98 will automatically the system in the central part of the table information, including System.dat, User.dat, System.ini and Win.ini all four files compressed into a cab in the form of files, in windows\\ The Sysbacup directory will have compressed files such as Rb000.cab and Rb001.cab, which are the most recent five system backups (Windows\\sysbckup is a hidden directory to view the hidden files and directories to display). The system automatically saves the last 5 boot-time registry data.

Generally, when the Windows98 is installed, the Scanregw.exe/autorun is automatically run at startup to back up the registry once a day. You can choose to run "Msconfig" on the Start menu, run Microsoft's System configuration program, click the "Start" option to see if the command is running. If the command is not running, run the Registry Editor "Regedit" in "Hkey_local_machine\\soft Ware\\microsoft\\windows\\currentversion\\run" A new string value is created under the primary key, and the key value is "C\\windows\\scanregw.exe/autorun" (this assumes that the Windows98 installation directory is c\\windows). In this way, Windows98 automatically backs up the last 5 registry forms and stores them in rb00.cab form under the c\\windows\\sysbckup\\ path.





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.