JSI Tip 2750. How do I export a REGEDIT4 .REG file using Windows 2000, from a command line or batch?
Jerold Schulman
August 23, 2000
1 Min Read
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 usingthe /e switch. Example:
regedit /e c:zzzreg.reg "HKEY_LOCAL_MACHINESoftwareMicrosoftInternet Explorer"
generates a file that starts with:
Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESoftwareMicrosoftInternet Explorer]"Build"="54134.0600""Version"="5.50.4134.0600"@="""IntegratedBrowser"=dword:00000001"MkEnabled"="Yes"[HKEY_LOCAL_MACHINESoftwareMicrosoftInternet ExplorerAboutURLs].......................................
To generate a Win9x/NT4 Registration Files (REGEDIT4) file, use the /a switch. Example:
regedit /a c:zzzreg.reg "HKEY_LOCAL_MACHINESoftwareMicrosoftInternet Explorer"
generates a file that starts with:
REGEDIT4[HKEY_LOCAL_MACHINESoftwareMicrosoftInternet Explorer]"Build"="54134.0600""Version"="5.50.4134.0600"@="""IntegratedBrowser"=dword:00000001"MkEnabled"="Yes"[HKEY_LOCAL_MACHINESoftwareMicrosoftInternet ExplorerAboutURLs].......................................
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like