Export key to REG file

A useful feature of ART is an ability to export any key to a *.REG file, which is a text file. Later you can use this *.REG file to modify local (as well as remote) Registry settings. After exporting a key you may see the layout of the *.REG file by simply opening it in an editor by clicking   (to choose an external editor, which will be used for revision, click on External Editor tab of the Settings window).

To export a key to a *.REG file by means of ART select the key, then from the File menu choose Export to  REG File, define a filename, and save it.

If you open this file in an editor (as it was described above) you will see a text similar to the example below:

REGEDIT4
; ART - 14.10.99 11:24:06\HKEY_LOCAL_MACHINE\SYSTEM\Setup
[HKEY_LOCAL_MACHINE\SYSTEM\Setup]
"SetupType"=dword:00000000
"CmdLine"="setup-newsetup"
"SystemPrefix"=hex:c5,0b,00,00,00,40,36,02

The layout is quite simple: REGEDIT4 indicates the file type,
; ART - 14.10.99 11:24:06\HKEY_LOCAL_MACHINE\SYSTEM\Setup is a comment,

[HKEY_LOCAL_MACHINE\SYSTEM\Setup] indicates the key the values are from,
"SetupType"=dword:00000000 are the values themselves. The portion after the "=" varies depending on the type of value:
String, Binary, or DWORD.

Additional Information

If you wish to export the entire Registry, select the active main node of the tree. Note that only the rootkeys HKEY_LOCAL_MACHINE and HKEY_USERS get exported because all other rootkeys are included (they can be found as subkeys of any of these two rootkeys).

CAUTION: You have to know that if you ever accidentally double-click on a *.reg file, its content will merge into your Registry. To prevent this, open Windows Explorer (My Computer) select View/ Options menu (for Windows2000 - Tools/Folder Options). On the File Types tab scroll to Registration Entries and select it. Click the Edit button. In the Actions list, select Edit and press the Set Default button.

These actions change the default behavior so that double-clicking a *.REG file will open it in notepad. If you want to merge it with the Registry, click mouse-right-button and select Merge from the menu.

NT: Export of your Registry to a *.REG file is not the same operation as back-up your Registry. It is possible that certain Registry keys do not get exported because you as a user that is currently logged on may have insufficient permission to read them. Typically a *.REG file does not contain any information on security, permissions and ownership while running on NT.

Windows 95,98: in rare circumstances, when the Registry is badly corrupted, you can start the computer using the Windows 95 startup disk. Then you can use the real-mode REGEDIT.EXE utility on the startup disk to import a *.REG file. In this case, the following command syntax can be used at the command prompt.

regedit [/L:system] [/R:user] file1.reg, file1a.reg...

regedit [/L:system] [/R:user] /c file2.reg

Parameter Description

/L:system Specifies the location of SYSTEM.DAT.

/R:user Specifies the location of USER.DAT.

file1.reg Specifies one or more .REG files to import into the Registry.

/c file2.reg Specifies the .REG file to use to replace the entire contents of the Registry.

CAUTION: Use the !!!(regedit /c) option with extreme care, and only when you are sure that the specified *.REG file contains a complete image of the Registry.


[ Previous | Index| Next ]