Export key to REG file

A useful feature of the ART is it's ability to export any key to a text file, this text file, with the .REG extension, can then be saved or shared with other people to easily modify local registry settings. You can see the layout of these text files by simply exporting a key to a text file and opening it in editor by clicking   (to choose an external editor, use "External Editor" tag of the settings window).

To do this using the ART select a key, then from the "File" menu choose "Export to REG File", choose a filename and save. If you open this file in editor you will see a file 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 indicated the file type,

; ART - 14.10.99 11:24:06\HKEY_LOCAL_MACHINE\SYSTEM\Setup is a comment,

[HKEY_LOCAL_MACHINE\SYSTEM\Setup] indicated the key the values are from,

"SetupType"=dword:00000000 are the values themselves the portion after the "=" will vary depending on the type of value they are; 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).

If you ever accidentally double-clicked on a .reg file, you know that it merged the contents into your registry. To prevent this in the future, open explorer (My Computer) and select Options from the View menu. 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 doubled clicking a .reg file will open it in notepad. If you want to merge it with the registry, right click and select Merge from the menu.

NT: exporting your registry to a reg file is not the same as backing up your registry. It is possible that certain registry keys do not get exported because the user that is currently logged on may have insufficient permissions to read them. Typically, a reg file does not contain any information on security, permissions and ownership when 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 ]