You can also write a short VBScript subroutine and execute it using the Windows
scripting host. WScript.Shell object has methods to access the registry. Google
on VBScript and WSH.
Quoting "Rohr, Rob" <[log in to unmask]>:
> You can silently import a .reg file into the registry (for instance
> scripted registry updates as part of a login script) using the following
> regedit /s regfile.reg >nul
> More details on scripted regedit syntax:
> If you're using regedt32 to manage your registry updates, it also has a
> '/s' switch for silent import.
> There are some limitations to which hives you can update this way.
> Rob Rohr mailto:[log in to unmask]
> UVM - School of Business Administration
> 230 Kalkin Hall : (802) 656-0714
> Find My Office: http://www.bsad.uvm.edu/map/?find=rohr
> -----Original Message-----
> From: Technology Discussion at UVM [mailto:[log in to unmask]] On
> Behalf Of Larry Kost
> Sent: Wednesday, November 17, 2004 1:45 PM
> To: [log in to unmask]
> Subject: .reg file
> I can change a registry setting by executing a .reg file. However, it
> always asks if I really want to alter the registry. Is there some way
> to stop the question or is there some other way to change a registry key
> value from the command line? This needs to be something which requires
> no intervention.
> Larry Kost