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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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