Export Windows XP registry with the command line

Export to “Registry Editor Version 5.00” format

regedit.exe /e putty-sessions.regedit5.reg 'HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions'

Export to “REGEDIT4” format

regedit.exe /a putty-sessions.regedit4.reg 'HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions'