command line registry export to text file

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
 
T

Torgeir Bakken (MVP)

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
 
T

Torgeir Bakken (MVP)

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

x

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

x

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
 
P

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

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

Mark V

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

Mark V

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

Guest

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

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top