in reply to Output Registry (Windows) by Exporting file

Although some Win32 suggestions have been made, if you really do just want to export to a file, a non-perl solution may be easier, from an installation perspective.

The regedit program does have command-line options for this sort of thing, although they are not particularly well-documented in Windows Help. To dump the whole registry to a file, you can use the /e switch followed by a filename, e.g:

regedit /e regdump.txt

Or you can just get a section, by giving the key after the filename:

regedit /e reg.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT"

s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&