Unicode Explained

Registry editor (Regedit.exe), which will be discussed in detail in Chapter 3, allows you to export the whole registry or individual keys. You may export the registry to any device installed in the local system.

Tip 

Export registry files to a folder specially created for this purpose. This folder may be located on the network drive and contain individual subfolders for each user. If you add this folder to the list of folders to be included in the regular backup procedure, you and all other users will benefit from the improvement in reliability.

To export the registry, proceed as follows:

  1. Start Regedit.exe and select My Computer (to export the whole registry) or any individual key (to export that key only).

  2. Select the Export… command from the File menu.

  3. The Export Registry File dialog will open (Fig 2.15). Select the target folder and specify the file name for the file that will contain exported registry information.

    Figure 2.15: The Export Registry File dialog. The whole process of exporting the registry file is very similar to the process of saving files

The exported registry file has an ASCII text format. You may open this file for editing using any text editor.

Exporting the whole registry or individual registry keys is the simplest method of backing up the registry before proceeding with any operations that modify registry content. To discard an incorrect modification introduced in the registry, simply import the previously exported registry file.

To restore registry keys using Regedit, select the Import Registry File command from the File menu. The Import Registry File dialog will open (Fig. 2.16). You need to select the file to be imported.

Figure 2.16: Importing the registry file

Note 

After getting acquainted with the registry, you will be able to experiment with it and even solve problems by editing the exported registry file and importing it back to the system. However, before you proceed with editing the exported registry file, make a backup copy of this file to safeguard against possible errors.

Some tips concerning working with registry import and export functions are shown below.

Note 

Be very careful with REG files! The Distribution disks of some applications include these files and use them when installing the application to set registry values needed by the application. Don't ignore any precautionary measures! If you double-click on a REG file, Regedit.exe will read this file and insert its contents into the registry. If the registry already contains the same keys, they will be replaced by new keys retrieved from the REG file. Before entering the contents of these files in the registry, always open REG files using a text editor (Notepad, for example). That way you will know what you are going to enter in the registry.

Категории