Skip navigation

JSI Tip 2750. How do I export a REGEDIT4 .REG file using Windows 2000, from a command line or batch?


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:

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\]
.......................................
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:

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



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish