@echo off
del /F /Q X64.reg
cls
SET renchongyi=%CD%
SET renchongyi=%renchongyi:\=\\%
> ".\RASregfile.reg" ECHO Windows Registry Editor Version 5.00
>>".\RASregfile.reg" ECHO. 
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\EA Games\Family Game Night]
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\EA Games\Family Game Night\Clue Classic]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Clue Classic"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\EA Games\Family Game Night\Game of LIFE]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Game of LIFE"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\EA Games\Family Game Night\Monopoly]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Monopoly"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\EA Games\Family Game Night\Operation Mania]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Operation Mania"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\EA Games\Family Game Night\Pictureka! Museum Mayhem]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Pictureka! Museum Mayhem"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\EA Games\Family Game Night\Yahtzee]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Yahtzee"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Family Game Night]
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Family Game Night\Clue Classic]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Clue Classic"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Family Game Night\Game of LIFE]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Game of LIFE"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Family Game Night\Monopoly]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Monopoly"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Family Game Night\Operation Mania]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Operation Mania"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Family Game Night\Pictureka! Museum Mayhem]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Pictureka! Museum Mayhem"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EA Games\Family Game Night\Yahtzee]
>>".\RASregfile.reg" ECHO "Directory"="%renchongyi%\\Yahtzee"
cls
ver|findstr /i "XP"&&goto XXPP
echo.
echo 现在弹出了注册表导入窗口，请按"是"或"确定"，从而完成安装
echo.
RASregfile.reg
cls
goto VVWW77
:XXPP
echo 耐心等待...
regedit /s ".\RASregfile.reg"
"%windir%\regedit.exe" /s ".\RASregfile.reg"
"%windir%\SysWoW64\regedit.exe" /s ".\RASregfile.reg"
cls
goto VVWW77
:VVWW77
ren RASregfile.reg X64.reg

echo 注册表恢复成功，按任意键退出
echo. 
echo.
pause >nul
cls