Results 1 to 11 of 11
  1. #1
    New Lounger
    Join Date
    Jul 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Registry Export (2002)

    Look for a fast, easy way to export CURRENT_USER from the registry. I do this everyday and getting tired of doing it manually [img]/forums/images/smilies/sad.gif[/img]

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Registry Export (2002)

    This is not a VB/VBA solution, but several Loungers are enthousiastic users of AutoIt, a free utility to automate Windows tasks.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Registry Export (2002)

    You are exporting the entire HKEY_CURRENT_USER hive?

    You could check out the command line approach using REG.EXE listed as "Method 2(a)" in "How to backup the Windows XP Registry?". I targeted HKCU and got a 13MB file. I don't even know how to start confirming that it's correct. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Okay, I compared by exporting from regedit as well, and that file is several megabytes larger. Hmmm. Perhaps scripting or WMI will help?

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Registry Export (2002)

    You can Shell regedit.exe.
    You can use the RegSaveKey API.

  5. #5
    New Lounger
    Join Date
    Jul 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Registry Export (2002)

    Thank you all, appreciate it very much.

    Also, in the registry, where the key has a value of REG_BINARY, would it be possible convert that value to regular text? If so, can you show me an example please?

    Thanks
    Denise

  6. #6
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Registry Export (2002)

    Hey Howard, you fergot to mention that using RegSaveKey is th preferred method as it includes protections, etc, as saved in the registry.
    regedit.exe doesn't save all this info.

  7. #7
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Registry Export (2002)

    in the general case, REG_BINARY contains binary data for which there is no text representation.

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Registry Export (2002)

    Binary values are represented in hexadecimal codes so that they can be saved in a plain text file. However, in most cases these codes do not spell anything recognizable and cannot be edited with confidence. If the software publisher wanted you to be able to manipulate that data, it would have created individual values. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  9. #9
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Registry Export (2002)

    While you've got your <img src=/S/thinks.gif border=0 alt=thinks width=15 height=15> cap on, I've had the need on more than on occassion to look at an old registry e.g. in a backup, and do things like search, export keys or branches etc. That is, I'd like to use the convenient tree-structured regedit app, or similar, to peruse old .DAT files. Regedit will only open the current registry, unless you embark on some rather dangerous moves/ renames.

    Any thoughts on doing this (anybody)?

    Alan

  10. #10
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Registry Export (2002)

    Regedit can edit registry files that you copy from other PCs, just use File > Load Hive before you edit and File > Unload Hive when you have finished.

    See, for example, http://www.microsoft.com/technet/archive/w...reg/admreg.mspx

    StuartR

  11. #11
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Registry Export (2002)

    Thanks Stuart. That's a good one to know. I must admit I've not tried it in XP. My problem with this stemmed from 98 days, when there were plenty of "B...."s, but no hives. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Alan

Posting Permissions

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