Solved

How do I export an ASCII version of a part of the registry

Posted on 1997-10-13
6
781 Views
Last Modified: 2013-12-03
I've seen that by specifying a '/e' on the command line of regedit.exe that it export the entire HKEY_LOCAL_MACHINE to a text file you specify.  Is it possible to export only part of the key to a file?  If so, how?
0
Comment
Question by:postrowski
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:jaba
ID: 1407381
It possible from regedit.exe , meny Registry/Export Registry File... When, choose "Selected branch" in dialog.
0
 

Author Comment

by:postrowski
ID: 1407382
I should have been more specific.  I'm trying to do this without user interaction, from a C++ program.
0
 
LVL 3

Expert Comment

by:jaba
ID: 1407383
When you have to write small WIN32 program. Enumerate all registry keys in selected branch ( from command line) and write it to file.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:postrowski
ID: 1407384
I know how to do this with a recurvise scan & write, and I've even done this, but it has some limitation.  For example there are a dozen or so different types of registry keys:
   Binary
   ResourceList
   ResourceDecriptor
   ResourceRequirmentsList
   multipleString
   UnexpandedString
   DoubleWord
   String
   DoubleWordBigEndian
   SymbolicLink
   None
   and possibly more to come.

I have only found the format of serveral of these, but not all.
Unless I can be sure that I cover ALL CASES, I would rather use regedit, which is 100% guarentied to work, assuming that I can custom tailor the branch to be exported.
0
 

Accepted Solution

by:
kw040597 earned 50 total points
ID: 1407385
Below is the text copied from WIndows95 Resource Kit:

regedit [/L:system] [/R:user] file1.reg, file1a.reg...
regedit [/L:system] [/R:user] /e file3.reg [regkey]
regedit [/L:system] [/R:user] /c file2.reg

Parameter      Description
/L:system      Specifies the location of SYSTEM.DAT.
/R:user      Specifies the location of USER.DAT.
file1.reg      Specifies one or more .REG files to import into the Registry.
/e file3.reg      Specifies the filename to which the Registry should be exported.
regkey      Optionally, specifies the starting Registry key from which to export a portion of the Registry. If no value is specified, regedit /e exports the entire Registry.
/c file2.reg      Specifies the .REG file to use to replace the entire contents of the Registry.
Caution  Use the regedit /c option with extreme care, and only when you are sure that the specified .REG file contains a complete image of the Registry.

Here's my example:

regedit /e "c:\program files\1.reg" "HKEY_CURRENT_USER\Software\Microsoft\Microsoft Help Workshop"

0
 

Author Comment

by:postrowski
ID: 1407386
Thank you!  I thought I had already tried that combination, but I guess not...
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question