How to export multi-keys from Registry?

Y

YXQ

I want to export some keys to a reg file using "regedit /e", how to export
more keys to one file once but no only a key? thank you.
 
T

Teme64

YXQ said:
I want to export some keys to a reg file using "regedit /e", how to export
more keys to one file once but no only a key? thank you.

You can export registry hive:
regedit /e file.reg HKEY_CURRENT_USER\Software\Microsoft
 
K

kimiraikkonen

I want to export some keys to a reg file using "regedit /e", how to export
more keys to one file once but no only a key? thank you.

You can use "Microsoft.Win32.Registry" or "My.Computer.Registry" and
their methods to achieve getting/setting registry values but as i know
they doesn't provide functions that are meant to export registry
to .reg file directly.

In this case, you can run regedit (registry editor) using "Shell" with
parameters as if it's invoked from command-line.

Look at this:
http://uekb.shavlik.com/UpdateEXPERT/TroubleShooting/Tasks/UE0272.htm
http://groups.google.de/group/microsoft.public.de.vb/msg/1313da2981438774

Hope this helps,

Onur Güzel
 
K

kimiraikkonen

You can use "Microsoft.Win32.Registry" or "My.Computer.Registry" and
their methods to achieve getting/setting registry values but as i know
they doesn't provide functions that are meant to export registry
to .reg file directly.

In this case, you can run regedit (registry editor) using "Shell" with
parameters as if it's invoked from command-line.

Look at this:http://uekb.shavlik.com/UpdateEXPER...group/microsoft.public.de.vb/msg/1313da298143...

Hope this helps,

Onur Güzel

Addition:
You can also use Reg.exe to export registry to .reg file which can run
from command-line.

See this if it helps:
...scroll down, method 2(a):

http://windowsxp.mvps.org/registry.htm

HTH,

Onur Güzel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top