Re: Exporting/Importing Registry keys



Regedit can be run with no interaction.
Here is a one line batch file to export a specific key:
(One line but may wrap)

REGEDIT /e url.reg
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\URL

Here is a one line batch file to merge that key:

REGEDIT /s url.reg

You can specify a path for the filename if you wish.
Enclose any key with spaces in quotation marks.

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.org/index.html



On Wed, 9 Aug 2006 14:40:14 -0700, in
microsoft.public.windowsxp.general, Vidya
<Vidya@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hi,

Thanks for the response. But my problem is "I cannot run in an interactive
mode" - I need something that is non-interactive. This will not work.

Any other suggestions?

Thanks





"Gel" wrote:

from dos run command "regedit"

Then select "file/export"; remember where to!!

To run, right click and select "merge" I recall.


Vidya wrote:
Hi,

What is the best/recommend way to export and import custom registry keys.

I use
reg export <RootKey>\<SubKey> <FileName> /y

The problem is this works great on Windows 2003 SP1 but the '/y' option is
missing in Windows XP SP2. I cannot run this command in an interactive mode
and hence '/y' is really important.

Any suggestions/clues.

Thanks
Vidya


.



Relevant Pages

  • Re: Controversial question re: Turbo and .Net
    ... Because I was saying that it is easy to create a specific registry backup for your particular application. ... And restoring can be either another batch file with command line options to regedit or simply double-clicking the backup. ...
    (borland.public.delphi.non-technical)
  • Re: Changes to registry using a batch file
    ... REGEDIT view when you have run your batch file. ... If I launch the batch file in a command prompt I get "The operation ... I did refresh I even restarted the machine but not changes. ...
    (microsoft.public.windowsxp.general)
  • Re: Changes to registry using a batch file
    ... This might sound like a silly question but are you refreshing your REGEDIT view when you have run your batch file. ... Secondly, rather than maintaining a seperate .REG file, you can use the following command to achieve what you want - it's a bit cleaner - ...
    (microsoft.public.windowsxp.general)
  • Re: Toggle full window dragging
    ... reapply user settings. ... Write a batch file that includes your registry merge. ... regedit /s DragFullWindows_off.reg ...
    (microsoft.public.win2000.registry)
  • Re: Drive by virus help
    ... I am an experienced computer user. ... I have had problems with some of the windows updates crashing my notebook ... I got rid of both files then went to regedit to check my run keys. ...
    (microsoft.public.windowsxp.general)