>Does anybody knows how to run a *.reg-file silently on a computer? I need
this to do automatic updates of my application without user-interaction.
General Syntax:
Import (merge) a .REG file:
REGEDIT.EXE [ /L:system ¦ /R:user ] [ /S ] importfile.REG
Export to a (.REG) file:
REGEDIT.EXE [ /L:system ¦ /R:user ] /E exportfile
"registry_k ey"
Parameters:
importfile.REG .REG file to be imported (or "merged")
exportfile File name the information should be written to
"registry_k ey" Registry key to be exported
e.g. "HKEY_CLASSES\R OOT\*\shell"
/S Silent, i.e. hide confirmation box when
importing files
/E Export registry file
/L:system Specify the location of the system.dat to use
/R:user Specify the location of the user.dat to use
/C Compress [filename] (Windows 98 only)
So something like REGEDIT /S <importfile.reg > should do the trick.
Marc
=============== =============== =============== =============== ====
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)i nova.ch