Save multiple registry keys
-
Hi All, How can I save multiple registry keys into a single file? The RegSaveKeyEx() fails if a file already exists. Thank you, AJ
Ajay L D wrote:
The RegSaveKeyEx() fails if a file already exists.
Can't you rename the existing file and delete it later if RegSaveKeyEx() succeeds?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Ajay L D wrote:
The RegSaveKeyEx() fails if a file already exists.
Can't you rename the existing file and delete it later if RegSaveKeyEx() succeeds?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Ajay L D wrote:
The RegSaveKeyEx() fails if a file already exists.
Can't you rename the existing file and delete it later if RegSaveKeyEx() succeeds?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
I think the OP wasn't asking about that (my
CPMRU
battery pack is fully charged): maybe he was asking how to write multiple keys (possibly unrelated) in the same file. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
I think the OP wasn't asking about that (my
CPMRU
battery pack is fully charged): maybe he was asking how to write multiple keys (possibly unrelated) in the same file. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Nope, unfortunately. :(( :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Nope, unfortunately. :(( :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeCPallini wrote:
Nope, unfortunately. [Cry]
Running low on drugs? :suss:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
CPallini wrote:
Nope, unfortunately. [Cry]
Running low on drugs? :suss:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
Yes. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Hi All, How can I save multiple registry keys into a single file? The RegSaveKeyEx() fails if a file already exists. Thank you, AJ
Call
RegSaveKeyEx()
as many times as necessary, then merge all of the files into one."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi All, How can I save multiple registry keys into a single file? The RegSaveKeyEx() fails if a file already exists. Thank you, AJ
And see A Registry Class[^] if does any help.
-
And see A Registry Class[^] if does any help.
-
If you think my answer wasn helpful you can give me vote. ;P