Prev: How to move My Documents, Desktop, swap file, etc. to 2nd hard dr
Next: Can't move items on the menu...
From: WVMontani on 25 Jun 2010 07:31 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 25 Jun 2010 08:01 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 25 Jun 2010 08:06 -------- 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 25 Jun 2010 08:09 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 26 Jun 2010 14:03
"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. |