This method has some limitations with certain characters that need to be escaped with ^
Like these: ^)
^&
^<
^>
^|
@echo off
(
echo.Windows Registry Editor Version 5.00
echo.
echo.[HKEY_CURRENT_USER\Software\Developer]
echo.
echo.[HKEY_CURRENT_USER\Software\Developer\HisSoftware]
echo.
echo.[HKEY_CURRENT_USER\Software\Developer\HisSoftware\Jumplist]
echo. "Recent sessions"=hex(7):41,00,66,00,74,00,65,00,72,00,6d,00,61,00,72,00,6b,00,\
) >file.reg