Command Line/ .bat - Registry Update / Switches ?

  • Thread starter Thread starter +Bob+
  • Start date Start date
B

+Bob+

I need to add settings to the registry repeatedly. I've been doing it
via a bat that does a few related things then calls a .reg file (old
style, text editable) but then I have to answer the "do you want to do
this" and then "this was done" interactive prompts.

I there some way to put a switch on the line to eliminate the
interactive prompts or perhaps another simple method of adding the
settings to the registry from a .bat ? .

Thanks,
 
+Bob+ said:
I need to add settings to the registry repeatedly. I've been doing it
via a bat that does a few related things then calls a .reg file (old
style, text editable) but then I have to answer the "do you want to do
this" and then "this was done" interactive prompts.

I there some way to put a switch on the line to eliminate the
interactive prompts or perhaps another simple method of adding the
settings to the registry from a .bat ? .

Thanks,

Use the /s switch.
Have a look here for the full syntax:
http://support.microsoft.com/?kbid=310516
 
+Bob+ said:
I need to add settings to the registry repeatedly. I've been doing it
via a bat that does a few related things then calls a .reg file (old
style, text editable) but then I have to answer the "do you want to do
this" and then "this was done" interactive prompts.

I there some way to put a switch on the line to eliminate the
interactive prompts or perhaps another simple method of adding the
settings to the registry from a .bat ? .

Use the command %windir%\regedit.exe /s <Path\>xyz.reg and note the /s
switch.
 
Back
Top