• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Registry Prompt

W

WVMontani

Flightless Bird
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
 
N

Norm Cook

Flightless Bird
Googled for: regedit command line switches
Looks like /s might do it.
http://support.microsoft.com/kb/82821

"WVMontani" <wvmontani@yahoo.com> wrote in message
news:0f14330c-6645-4976-b423-ea39c24b4511@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
 
B

Bernd

Flightless Bird
-------- 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
 
J

John John - MVP

Flightless Bird
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
 
A

Anthony Buckland

Flightless Bird
"John John - MVP" <audetweld@nbnet.nb.ca> wrote in message
news:eovNR9FFLHA.4824@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.
 
Top