postrowski
asked on
How do I export an ASCII version of a part of the registry
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?
It possible from regedit.exe , meny Registry/Export Registry File... When, choose "Selected branch" in dialog.
ASKER
I should have been more specific. I'm trying to do this without user interaction, from a C++ program.
When you have to write small WIN32 program. Enumerate all registry keys in selected branch ( from command line) and write it to file.
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you! I thought I had already tried that combination, but I guess not...