apronk,
 Originally Posted By: apronk
REG LOAD KeyName FileName

I would think the equivalent for LoadKey() with reg.exe would be
REG RESTORE etc...
 Quote:
C:\>reg restore /?

Console Registry Tool for Windows - version 3.0
Copyright (C) Microsoft Corp. 1981-2001. All rights reserved


REG RESTORE KeyName FileName

KeyName ROOTKEY\SubKey (local machine only)
ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
SubKey The full name of a registry key to restore the hive file into.
Overwriting the existing key's values and subkeys
FileName The name of the hive file to restore
You must use REG SAVE to create this file

Examples:

REG RESTORE HKLM\Software\Microsoft\ResKit NTRKBkUp.hiv
Restores the file NTRKBkUp.hiv overwriting the key ResKit