Page 1 of 1

how to make backup from regedit by cmd?

Posted: 10 Jul 2011 04:25
by Mohammad_Dos
Hello friends
how to make backup from regedit by cmd?

Re: how to make backup from regedit by cmd?

Posted: 10 Jul 2011 05:44
by aGerman

Code: Select all

regedit /e "%userprofile%\desktop\all.reg"


This creates all.reg on your desktop. Note, it needs a lot of time (probably longer than a minute). The file is big enough that an editor will have problems to open it.

Regards
aGerman

Re: how to make backup from regedit by cmd?

Posted: 10 Jul 2011 10:02
by Mohammad_Dos
thank u
1-
but what about when i want to backup just a part of registry? for example:
HKEY_CURRENT_CONFIG\Software




2-
is it possible to get backup from regedit in a bat file?

Re: how to make backup from regedit by cmd?

Posted: 10 Jul 2011 11:07
by aGerman
1-

Code: Select all

regedit /e "%userprofile%\desktop\HCCSW.reg" "HKEY_CURRENT_CONFIG\Software"


2-
I don't get it. You can write the command line into a batch file.
To import a .reg file into your registry use

Code: Select all

regedit /s "%userprofile%\desktop\HCCSW.reg"


But it makes no sense to export registry keys into a .bat file, because the result is not a batch code.

Regards
aGerman

Re: how to make backup from regedit by cmd?

Posted: 10 Jul 2011 12:35
by Mohammad_Dos
THANK U