command line registry export to text file

  • Thread starter Thread starter x
  • Start date Start date
X

x

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.

Is it possible to do this?

Paul
 
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.

Hi

With REGEDIT.EXE, you can let it export to an ASCII file instead of a Unicode
file like this:

REGEDIT /E:A filename [regpath]

filename Specifies the file to export the registry to.

regpath Specifies the starting registry key to export from.
(Defaults to exporting the entire registry).



The command line utility Reg.exe in the Win2k Support Tools can also export to
a text file (REG QUERY: non-regfile format, REG EXPORT: regfile format, ASCII
format if you use the /nt4 switch)

Support Tools is found on the Win2k CD, \Support\Tools\Suptools.msi, or for
the latest version of Support Tools (should work on non-SP4 computers as well):

http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp
 
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.

Hi

With REGEDIT.EXE, you can let it export to an ASCII file instead of a Unicode
file like this:

REGEDIT /E:A filename [regpath]

filename Specifies the file to export the registry to.

regpath Specifies the starting registry key to export from.
(Defaults to exporting the entire registry).



The command line utility Reg.exe in the Win2k Support Tools can also export to
a text file (REG QUERY: non-regfile format, REG EXPORT: regfile format, ASCII
format if you use the /nt4 switch)

Support Tools is found on the Win2k CD, \Support\Tools\Suptools.msi, or for
the latest version of Support Tools (should work on non-SP4 computers as well):

http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp
 
Torgeir Bakken (MVP) said:
With REGEDIT.EXE, you can let it export to an ASCII file instead of a Unicode
file like this:

REGEDIT /E:A filename [regpath]

filename Specifies the file to export the registry to.

regpath Specifies the starting registry key to export from.
(Defaults to exporting the entire registry).

Thanks Torgeir, that's solved my problem!

Paul
 
Torgeir Bakken (MVP) said:
With REGEDIT.EXE, you can let it export to an ASCII file instead of a Unicode
file like this:

REGEDIT /E:A filename [regpath]

filename Specifies the file to export the registry to.

regpath Specifies the starting registry key to export from.
(Defaults to exporting the entire registry).

Thanks Torgeir, that's solved my problem!

Paul
 
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.
 
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.
 
In said:
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).

I will guess that the OP is using a non-UNICODE-aware editor perhaps.
There is nothing wrong with exporting to ANSI ("/a") or using
REGEDIT4 format IMO. REG.EXE in Support Tools should be available
too.
 
In said:
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).

I will guess that the OP is using a non-UNICODE-aware editor perhaps.
There is nothing wrong with exporting to ANSI ("/a") or using
REGEDIT4 format IMO. REG.EXE in Support Tools should be available
too.
 
-----Original Message-----
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.

Is it possible to do this?

Paul


.it is a text file...
 
-----Original Message-----
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.

Is it possible to do this?

Paul


.it is a text file...
 
Back
Top