1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Registry Prompt

Discussion in 'Windows XP' started by WVMontani, Jun 25, 2010.

  1. WVMontani

    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
     
  2. Norm Cook

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

    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
     
  4. John John - MVP

    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
     
  5. Anthony Buckland

    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.
     

Share This Page