Jump to content

[QUESTION] How to not overwrite previous registry settings ?


Recommended Posts

Posted

HI I have a batch file with the folowing content:

REGEDIT /S options.reg

where options.reg is a software reg backup. I would like to be able to restore it only if the key are not present. HOw can I do that ?


Posted

You can backup the current settings add your custom settings and then add the origional settings back.

REG EXPORT [ROOTKEY\SubKey] temp.reg
REG IMPORT options.reg
REG IMPORT temp.reg

Posted

Thank, it seem good. I will test it.

But Does someone know a better solution ? I would like the batch file to not write to registry at all if the key is already present.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...