Xem mẫu

  1. Registry Export and Import 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.
  2. 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. If you use the import/export function for backing up and restoring the registry, don't forget to copy the exported registry files to removable media or to the network drive. Before completing the export operation, make sure that the key range you are going to export is the particular one that you need. If the All option is set, the operation will export the whole registry. If you set the Selected branch option, the export operation will export the key specified in the field below. Be very careful when working with exported registry files. Don't attempt to import incompatible registry files (i.e., don't import registry files exported from Windows NT v. 4.0 or v. 3.51 to a Windows 2000/XP or Windows Server 2003 registry, and vice versa; never try to import Windows 9x/ME registry files to a registry of a Windows NT-based system). If you import incompatible registry files, the import process will fail but, if it saves incorrect registry data before the error occurs (which will probably happen), you will have problems that can manifest themselves immediately or the next time you reboot the system. Don't double-click on exported registry files of unknown origin. By default, all exported registry files bear the REG filename extension, which is associated with
  3. the Regedit.exe program. If you double-click on an incompatible registry file exported from a different operating system, the import procedure will begin before you can understand what's happened. The result can be devastating. 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.  
nguon tai.lieu . vn