Hi All
I need functions like say _SaveRegistry() and _RestRegistry() that will enable me to save the entire windows registry to disk and restore it when needed.
The functions should receive optional parameters like:
DC_RegQuery( [<nHKey>], [<cRegSubKey>], [<cEntryName>] )
Thanks
Joe
_SaveRegistry() and _RestRegistry()
Re: _SaveRegistry() and _RestRegistry()
hm ... do you want to "save" Registry in same Format as do it manuel with RegEdt32.EXE or Reg.EXE ?
if you want use Xbase++ to get Access to Registry you can use Thomas Braun Registry Class.
it include Method where you can travel up/down a Registry Tree to get "Key" and "Value".
same Way you can Import a *.REG File.c:\Windows\System32\reg.EXE export /?
REG EXPORT Schlüssel Datei[/y]
Schlüssel STAMMSCHLÜSSEL[\Unterschlüssel] (nur lokaler Computer).
STAMMSCHLÜSSEL [ HKLM | HKCU | HKCR | HKU | HKCC ]
Unterschlüssel Vollst. Name eines Registrierungsschlüssels unter dem
STAMMSCHLÜSSEL.
Datei Name der zu exportierenden Datenträgerdatei..
/y Erzwingt das Überschreiben der vorhandenen Datei ohne
Aufforderung.
Beispiele:
REG EXPORT HKLM\Software\MyCo\MyApp AppBkUp.reg
Exportiert alle untergeordnete Schlüssel und Werte des Schlüssels
MyApp in die Datei AppBkUp.reg
if you want use Xbase++ to get Access to Registry you can use Thomas Braun Registry Class.
it include Method where you can travel up/down a Registry Tree to get "Key" and "Value".
greetings by OHR
Jimmy
Jimmy
Re: _SaveRegistry() and _RestRegistry()
Hi
Yes, I want to be able to save the entire registry in the reg format and also be able to restore the registry if it gets corrupted for whatever reasons.
Thanks
Joe
Yes, I want to be able to save the entire registry in the reg format and also be able to restore the registry if it gets corrupted for whatever reasons.
Thanks
Joe
Re: _SaveRegistry() and _RestRegistry()
This. Is. Not. A. Good. Idea.
You don't have any control about what happened between your last Reg-backup and the point of restorage. If anything happened with any application inbetween, you may f*ck the whole system.
Save "your" keys and restore them if needed. Don't do that with the complete registry database.
You don't have any control about what happened between your last Reg-backup and the point of restorage. If anything happened with any application inbetween, you may f*ck the whole system.
Save "your" keys and restore them if needed. Don't do that with the complete registry database.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: _SaveRegistry() and _RestRegistry()
Tom - I was wondering who would be the first person to post this great truth.This. Is. Not. A. Good. Idea.
I thought it might be you.
That, of course, was the first thing I thought of when this post started.
There is nothing more dangerous than trying to save and restore the registry.
Heisenberg must be rolling in his grave at the idea of it.
The eXpress train is coming - and it has more cars.
Re: _SaveRegistry() and _RestRegistry()
Windows has a system restore point already built in...
don't re-invent the wheel.. especially using a flat tire..
don't re-invent the wheel.. especially using a flat tire..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises