PC Review


Reply
Thread Tools Rate Thread

Command Line/ .bat - Registry Update / Switches ?

 
 
+Bob+
Guest
Posts: n/a
 
      31st Mar 2008
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,

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      31st Mar 2008

"+Bob+" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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


 
Reply With Quote
 
Detlev Dreyer
Guest
Posts: n/a
 
      31st Mar 2008
"+Bob+" <(E-Mail Removed)> wrote:

> 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.

--
d-d
 
Reply With Quote
 
+Bob+
Guest
Posts: n/a
 
      2nd Apr 2008
On Mon, 31 Mar 2008 16:22:48 GMT, "Detlev Dreyer"
<(E-Mail Removed)> wrote:

>"+Bob+" <(E-Mail Removed)> wrote:
>
>> 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.


Thanks, perfect.
 
Reply With Quote
 
Detlev Dreyer
Guest
Posts: n/a
 
      2nd Apr 2008
"+Bob+" <(E-Mail Removed)> wrote:

> Thanks, perfect.


'Welcome!

--
d-d
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Command line switches - possible =?Utf-8?B?RHVrZSBDYXJleQ==?= Microsoft Excel Misc 0 17th Aug 2007 01:44 AM
Cannot update registry from command line Kevin Brault Windows XP Customization 1 1st Feb 2006 06:20 AM
Command-line switches? Vanguard Spyware Discussion 7 26th Mar 2005 04:31 AM
Command line switches Steve Microsoft Word New Users 3 28th Dec 2004 09:37 AM
Command-Line Switches Fitzgerald Windows XP Internet Explorer 1 20th Sep 2003 10:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 PM.