How to export multi-keys from Registry?

  • Thread starter Thread starter YXQ
  • Start date Start date
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.
 
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
 
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
 
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
 
Back
Top