x said:
I'd like to export a registry key (or keys) to a text file from the
command line. I can export to a .reg file, but it's not a plain text
format.
Since Windows 2000 it's been written in Unicode, but the file's still
"plain", i.e. readible, text.
And why would you want it in any other format? A .reg file can be
used to add the same entries to any number of other machines;
change the format and your left with nothing but Notepad-fodder.
You have two choices - write a program to read the Registry directly
and output the format you want *or* write a program to read a .reg
file and convert it to the format you want (probably easier).
HTH,
Phill W.