@echo off
echo.
IF NOT !%WINDIR%==! GOTO DOSMODE
echo.			
echo	All current copies and backups of your Registry are about to be moved 
echo	to a backup folder and replaced by files saved in Image directory.
echo	If you don't wish to proceed press "Ctrl-C" or
Pause

MD C:\Windows\Sysave

If Exist  C:\Windows\system.da0 attrib -h -r -s C:\Windows\system.da0
If Exist  C:\Windows\system.da0 move C:\Windows\system.da0 C:\Windows\Sysave
If Exist  C:\Windows\user.da0 attrib -h -r -s C:\Windows\user.da0
If Exist  C:\Windows\user.da0 move C:\Windows\user.da0 C:\Windows\Sysave
If Exist  C:\Windows\system.dat attrib -h -r -s C:\Windows\system.dat
If Exist  C:\Windows\system.dat move C:\Windows\system.dat  C:\Windows\Sysave
If Exist  C:\Windows\user.dat attrib -h -r -s C:\Windows\user.dat
If Exist  C:\Windows\user.dat move C:\Windows\user.dat  C:\Windows\Sysave

If Exist  C:\Windows\sysbckup\rb???.cab move C:\Windows\sysbckup\rb???.cab C:\Windows\Sysave

If Exist  C:\Windows\win.ini copy C:\Windows\win.ini C:\Windows\Sysave
If Exist  C:\Windows\system.ini copy C:\Windows\system.ini C:\Windows\Sysave
If Exist  C:\Windows\control.ini copy C:\Windows\control.ini C:\Windows\Sysave

echo.
echo	All copies of Registry have been moved to a backup folder
echo	Saved files are now being copied to system.

If Exist C:\Windows\system.dat attrib -h -r -s C:\Windows\system.dat
If Exist system.da0 copy system.da0 C:\Windows\system.dat
If Exist C:\Windows\user.dat attrib -h -r -s C:\Windows\user.dat
If Exist user.da0 copy user.da0 C:\Windows\user.dat
attrib -h -r -s C:\Windows\command.com
copy command.com C:\Windows\command.com
attrib -h -r -s C:\Windows\win.ini
copy win.ini C:\Windows\win.ini
attrib -h -r -s C:\Windows\system.ini
copy system.ini C:\Windows\system.ini
attrib -h -r -s C:\Windows\control.ini
copy control.ini C:\Windows\control.ini

If Exist autoexec.bat attrib -h -r -s C:\autoexec.bat
If Exist autoexec.bat copy autoexec.bat C:\autoexec.bat
If Exist config.sys attrib -h -r -s C:\config.sys
If Exist config.sys copy config.sys C:\config.sys
attrib -h -r -s C:\io.sys
copy io.sys C:\io.sys
attrib -h -r -s C:\msdos.sys
copy msdos.sys C:\msdos.sys

echo.
echo	Your registry has been replaced. To continue restart your 
echo	computer. To undo the preceeding operation and restore 
echo	the original files, while in Dos Mode and in Image folder  
echo	type reset at Prompt and press Enter.
goto end

:DOSMODE
echo.
echo	This program should not be run in Windows
echo	Switch to Dos Mode and run Recover again.
echo	Type EXIT to return to Windows.
goto end

:end






