Results 1 to 2 of 2

Thread: Registry question

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 1999
    Posts
    41
    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.

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    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
    Some cause happiness wherever they go; others, whenever they go.

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