From: WVMontani on
I keep a .reg file in my startup directory so it runs and modifies the
registry every time I log in (long story).

Anyways, when the .reg file runs, it prompts me and asks it I want to
modify the registry. My answer of course, is always "Yes."

Is there a way that I can make the .reg file just run and default to
"Yes" without the prompt?

-WVMontani
From: Norm Cook on
Googled for: regedit command line switches
Looks like /s might do it.
http://support.microsoft.com/kb/82821

"WVMontani" <wvmontani(a)yahoo.com> wrote in message
news:0f14330c-6645-4976-b423-ea39c24b4511(a)b35g2000yqi.googlegroups.com...
>I keep a .reg file in my startup directory so it runs and modifies the
> registry every time I log in (long story).
>
> Anyways, when the .reg file runs, it prompts me and asks it I want to
> modify the registry. My answer of course, is always "Yes."
>
> Is there a way that I can make the .reg file just run and default to
> "Yes" without the prompt?
>
> -WVMontani


From: Bernd on


-------- Original-Nachricht --------

> I keep a .reg file in my startup directory so it runs and modifies the
> registry every time I log in (long story).
>
> Anyways, when the .reg file runs, it prompts me and asks it I want to
> modify the registry. My answer of course, is always "Yes."
>
> Is there a way that I can make the .reg file just run and default to
> "Yes" without the prompt?
>
> -WVMontani

Regedit.exe supports a /s command-line switch to not display these
messages. For example, to silently run the .reg file (with the /s
switch) from a batch file, use the following syntax:

regedit.exe /s path of .reg file

Bernd
From: John John - MVP on
WVMontani wrote:
> I keep a .reg file in my startup directory so it runs and modifies the
> registry every time I log in (long story).
>
> Anyways, when the .reg file runs, it prompts me and asks it I want to
> modify the registry. My answer of course, is always "Yes."
>
> Is there a way that I can make the .reg file just run and default to
> "Yes" without the prompt?

Use a batch file and have Regedit.exe merge the file using the /s
switch, example:

regedit /s c:\regfile.reg

Put the batch file or a shortcut to the file in the Startup folder, do
not place the regfile.reg in the Startup folder.

John
From: Anthony Buckland on

"John John - MVP" <audetweld(a)nbnet.nb.ca> wrote in message
news:eovNR9FFLHA.4824(a)TK2MSFTNGP05.phx.gbl...
> WVMontani wrote:
>> I keep a .reg file in my startup directory so it runs and modifies the
>> registry every time I log in (long story).
>>
>> Anyways, when the .reg file runs, it prompts me and asks it I want to
>> modify the registry. My answer of course, is always "Yes."
>>
>> Is there a way that I can make the .reg file just run and default to
>> "Yes" without the prompt?
>
> Use a batch file and have Regedit.exe merge the file using the /s switch,
> example:
>
> regedit /s c:\regfile.reg
>
> Put the batch file or a shortcut to the file in the Startup folder, do not
> place the regfile.reg in the Startup folder.
>
> John

I suspect that there are some largish number of people
who, using regedit for the first time because some
consultant handed them a script they don't understand,
see the prompt and are only too glad: "My gawd, I'm
going to edit the _registry_?", and then make thorough
backing-up preparations first. Agreed, though, it's a
nuisance for the highly informed user.