Backup Registry Help!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a small program that modifies a few registry entries. Nothing that
would cause problems with the system, but I'd like to back up the registry
just in case.

How?

Thanks
Ron
 
Would you have another link? My work's proxy/firewall won't allow me to use
that one. It blocks UseNet for some stupid reason.

Sorry.
Ron.
 
Capt_Ron said:
Would you have another link? My work's proxy/firewall won't allow me to
use
that one. It blocks UseNet for some stupid reason.

An easy solution is using "regedit.exe"'s command line options to
export/import registry sections. The following implementation is based on a
VB6 sample written by Thorsten Dörfler [MVP]
(<URL:http://www.google.de/[email protected]>):

\\\
Public Class RegistryHelper
Public Shared Sub ExportSettings( _
ByVal FileName As String, _
ByVal Section As String _
)
FileName = """" & FileName & """"
Section = """" & Section & """"
Shell( _
"regedit.exe /e " & FileName & " " & Section, _
AppWinStyle.Hide _
)
End Sub

Public Shared Sub ImportSettings( _
ByVal FileName As String, _
Optional ByVal Silent As Boolean = True _
)
FileName = """"& FileName & """"
If Silent Then
FileName = "/s " & FileName
End If
Shell("regedit.exe " & FileName, AppWinStyle.Hide)
End Sub
End Class
///

Keywords: Registry, export, import, section.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top