Can you combine several different *.reg files into one reg file


  1. Posts : 477
    Windows 7 Pro 64bit SP1
       #1

    Can you combine several different *.reg files into one reg file


    I have a couple dozen three or four line separate reg files...is there a way to "auto-combine" these separate reg files into one complete reg file containing all the keys, etc...so I don't have to import each reg file separately into the main registry ?

    Or do I have to copy/paste each separate key, etc...into one main reg file via notepad ??

    Thanks...TRinAZ
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    Sure. All the .reg files start with Windows Registry Editor Version 5.00, a blank line and then the data.

    Start a new AllInOne.reg file in notepad.
    Copy and paste the first one completely.
    Copy and paste each of the other .reg files below that, skipping the Windows Registry Editor Version 5.00 line.

    Backup the registry then merge the AllInOne.reg file then check each key to make sure you got what you expected.

    To backup the registry, start regedit.
    Select Computer at the top.
    Click on File then Export.

    I did this on my Win 7 Pro X64 system and it's 311,538KB in size.

    To restore select File then Import and point to the one you exported. Reboot after.
      My Computer


  3. Posts : 1
    64
       #3

    i dont understand how a text file coul be 311mb .. all a registry backup is is a bunch of text in a .reg text file

    i actually was wondering how to do the same thing but a little differently

    i want to add ethernet with a value of 2 if it has a value of 1 and 1 if it has a value of 2

    right now i am accomplishing this with 2 separate .reg files, i was wondering if .reg files accepted code commands of any kind and if so which command would i use instead of IF
    i noticed if i try to put an if or else statement or a while loop it ignores the commands and just posted the first registry key into the database


    edit: is using a batch file with reg delete and reg add commands the only way or can i do this directly in a .reg file?

    and wht a coincidence that untill i edited this i was viewing and posted at the exact same time as Zturker only 2002 days later! neato lmao
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:29.
Find Us