albator Posted March 5, 2006 Posted March 5, 2006 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 ?
Bezalel Posted March 5, 2006 Posted March 5, 2006 You can backup the current settings add your custom settings and then add the origional settings back.REG EXPORT [ROOTKEY\SubKey] temp.regREG IMPORT options.regREG IMPORT temp.reg
albator Posted March 5, 2006 Author Posted March 5, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now