by Vincent Zack (3 Submissions)
Category: Registry
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Import And Export Registry Keys
Function ExportNode(sKeyPath As String, sOutFile As String)
'
'Example:
'ExportNode "HKEY_LOCAL_MACHINE\software\microsoft","c:\windows\desktop\out.reg"
'
'/E (Export) switch
Shell "regedit /E " & sOutFile & " " & sKeyPath
End Function
Function ImportNode(sInFile As String)
'
'Example:
'ImportNode "c:\windows\desktop\reg.reg"
'
'/I (Import) /S (Silent) switchs
Shell "regedit /I /S " & sInFile
End Function