Results 1 to 5 of 5

Thread: Registry Key

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    Connecticut, USA
    Posts
    308

    Registry Key

    How can I programmatically export a registry key from one machine and load it onto another machine?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Do you know the specific key that you want to export/import?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    Connecticut, USA
    Posts
    308
    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.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Try this then:
    VB Code:
    1. 'export
    2. Private Sub cmdExportKey_Click()
    3. Shell "regedit /e C:\MyFile.reg HKEY_CURRENT_USER\Software\Microsoft\Blah", vbHide
    4. End Sub
    5.  
    6. 'import
    7. Private Sub cmdImportKey_Click()
    8. Shell "regedit C:\MyFile.reg", vbHide
    9. End Sub

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    Connecticut, USA
    Posts
    308
    Good deal!!

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