How do I export a key in ANSI format from the registry?

John Savill

August 22, 2001

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. To export a key from the registry in ANSI format, use the /a switch:

regedit /a  ""


For example, the following command exports the HKEY_LOCAL_MACHINESoftware key in ANSI format from the hklm.reg file.

regedit /a c:hklm.reg "HKEY_LOCAL_MACHINESoftware"

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