In Windows 2000, Regedit normally exports a unicode .REG file, with a Windows Registry Editor Version 5.00 heading.

Using the GUI, you can toggle the drop down box from Registration Files to Win9x/NT4 Registration Files (REGEDIT4).

In tip 1087, we learned that you could export a registry key from the command line or batch file using the /e switch. Example:

regedit /e c:\zzz\reg.reg "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer"

generates a file that starts with:

<b>Windows Registry Editor Version 5.00

\[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\]
"Build"="54134.0600"
"Version"="5.50.4134.0600"
@=""
"IntegratedBrowser"=dword:00000001
"MkEnabled"="Yes"

\[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\AboutURLs\]
.......................................</b>
To generate a Win9x/NT4 Registration Files (REGEDIT4) file, use the /a switch. Example:

regedit /a c:\zzz\reg.reg "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer"

generates a file that starts with:

<b>REGEDIT4

\[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\]
"Build"="54134.0600"
"Version"="5.50.4134.0600"
@=""
"IntegratedBrowser"=dword:00000001
"MkEnabled"="Yes"

\[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\AboutURLs\]
.......................................</b>