It is possible to automate the export of a file. "Reg".

For export, 2 options are possible: in normal mode (switch "-e" -> Windows Registry Editor Version 5.00) or in compatibility mode (switch "-a" -> REGEDIT4).

Simply use the command REGEDIT chosen together with the switch, followed by the destination file and export the hive.

The import is done about it simply by using the "-s" followed by the file containing the information to be merged.

Export:
Code:
REGEDIT /e export5.reg ROOT\Cle 
REGEDIT /a export4.reg ROOT\Cle
Import:

Code:
REGEDIT /s import.reg