Link to home
Start Free TrialLog in
Avatar of Mark
Mark

asked on

how to import registry key?

I've reinstalled Windows 7 on a new drive. I want to import a registry key and subvalues from the old drive. I can successfully load the old hive and export the desired key to a .reg file. But when I try to import that to the new registry I get the message:

Cannot import mykey.reg: Error accessing the registry.

I get this message whether or not I run regedit as administrator. How to I import my key?
Avatar of Member_2_6492660_1
Member_2_6492660_1
Flag of United States of America image

Can you post the file?

Sounds like it is not a valid reg file
Is the old hive Windows 7 as well?
jmarkfoley--I assume mykey.reg is now located on the new drive, correct?.  
But fireandsalt has raised a good point.
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark
Mark

ASKER

McKnife: That did the trick! I simply had to go in and change the keyname I loaded under to the actual target keyname (in this case SOFTWARE), an they loaded fine.
McKnife you rock!