-
Does anybody know if it is possible to export registry entry using VB5?
I know how to read from or write to the registry.
Is it possible to export registry just like if I would go into the registry and click on File menu and Export.
I need to get .reg file.
Thank you.
-
I believe that the import...export functionality of regedit is actually part of the application, not a DLL function or anything. That said, it really isn't very difficult - iterate over every branch outputting the name and the value - e.g. here's an exported branch of one of my apps
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\TootApps\GetIP]
[HKEY_LOCAL_MACHINE\SOFTWARE\TootApps\GetIP\Configuration]
"Install"="05 July 2000"
"LastHost"="dat1"
"PingTimeout"="2000"
"PingInterval"="3"
"PingLogSize"="50"
"AutoHighlight"="True"
[HKEY_LOCAL_MACHINE\SOFTWARE\TootApps\GetIP\Position]
"Form1.Top"="10920"
"Form1.Left"="60"
If you can read keys and values OK, you should be OK. Reply if you're having trouble.
Toot