How can I programmatically export a registry key from one machine and load it onto another machine?
Printable View
How can I programmatically export a registry key from one machine and load it onto another machine?
Do you know the specific key that you want to export/import?
Actually, I have a couple of keys that I need to export from one machine and load on another.
I do know what the specific keys are.
Try this then:VB Code:
'export Private Sub cmdExportKey_Click() Shell "regedit /e C:\MyFile.reg HKEY_CURRENT_USER\Software\Microsoft\Blah", vbHide End Sub 'import Private Sub cmdImportKey_Click() Shell "regedit C:\MyFile.reg", vbHide End Sub
Good deal!! :D