Automatically importing and exporting Registry settings across computers



I recently purchased a portable USB2 hard drive and I'm trying to place some
applications that aren't portable on that drive. These write their settings
to the Registry.

What I'd like to do is, if possible, is get a method running that would
automatically extract a (previously exported) .reg file containing
application preferences to the Registry of the current computer (assuming
there is no pre-existing hive there), run the associated program from my
drive (e.g., Pegasus Mail), then export that Registry hive back to my drive
and remove it from the Registry.

I'm able to accomplish this manually using two batch files:
1a. reg import pmail.reg
1b. pmail.exe
2a. reg export "HKCU\Software\Pegasus Mail" pmail.reg
2b. reg delete "HKCU\Software\Pegasus Mail" /f

So what I'm looking for is a simpler, more automatic way. Is there one?

I also wish to check to make sure the target Registry hive is NOT pre-
existing. How can I do this?

Many thanks.
--
J44xm <http://j44xm.notlong.com>
.



Relevant Pages


Loading