Automated method to convert .reg registry file to reg.exe commands

Posted by nhinkle on Server Fault See other posts from Server Fault or by nhinkle
Published on 2010-09-08T06:38:04Z Indexed on 2010/12/25 13:55 UTC
Read the original article Hit count: 319

Occasionally I need to put registry entries into batch files to use in login scripts, unattended installers, etc. While it's pretty easy to add one or two registry commands to a batch file using reg.exe, when there is a large amount of registry data, it becomes tedious. I usually just end up merging an external reg file in those cases, which I would like to avoid, since it ruins the self-contained nature of the batch file. Does anybody know of any tools which can automatically convert a .reg file to a series of REG ADD and REG DELETE commands? This would make life a lot easier! Thanks.

© Server Fault or respective owner

Related posts about Windows

Related posts about automation