CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Registry

  1. #1
    Join Date
    Aug 2000
    Posts
    13

    Registry

    How can I export a particular branch of the registry to a text file??


  2. #2
    Join Date
    Sep 2000
    Location
    Ottawa, Ontario
    Posts
    356

    Re: Registry

    The easiest way is to Export to a file using regedit do this :
    add a command button to a form

    Private Sub Command1_Click()
    Dim RegCmd As String

    RegCmd = "regedit /E C:\output.txt HKEY_CURRENT_USER\Software\Microsoft"
    Shell RegCmd, vbMinimizedFocus
    End Sub

    This will create a C:\output.txt file (should be a .reg) it's a exported segment of the registry.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured