RegRest Topics | Previous | Next

Restoring All Active Hive Files


To restore all active hives in the \Config folder

One Stepregrest newFolder saveFolder

Where:

newFolder
specifies the folder for the source of the backed up hive file that will replace a hive file in the \Config folder. For each active registry hive whose file is in \Config, RegRest attempts to replace the current file with a similarly-named file from the newFolder.
saveFolder
specifies the folder where the old hive files in \Config are moved.

For example: regrest c:\monday.bku c:\install.sav. A warning appears if there are hives that must be backed up manually or if there are errors. For each active registry hive, whose file resides in the \Config directory, attempt to replace its current file with a similarly-named file in the New Files directory, and move the old file to the Save Files directory. Warn of errors and hives that must be restored manually (Use the syntax format that follows for manual restore).

regrest c:\monday.bku  c:\install.sav
if ERRORLEVEL 1 echo Error!