Registry Prompt

W

WVMontani

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

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

WVMontani said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top