@echo off rem fixreg.bat -restores the registry to the settings rem used on the last successful boot. cls echo. echo. echo ┌──────────────────────────────────────────────────┐ echo │ - FixReg v.1.0 ShareWare - │ echo │ │ echo │ ** Copyright (C) 1995 WILEY C. WIMBERLY, JR. ** │ echo └──────────────────────────────────────────────────┘ echo. echo. if "%1"=="/FIX" goto fix if "%1"=="/fix" goto fix if "%1"=="/F" goto fix if "%1"=="/f" goto fix if "%1"=="/UNFIX" goto unfix if "%1"=="/unfix" goto unfix if "%1"=="/U" goto unfix if "%1"=="/u" goto unfix echo FixReg can be used to restore the registry to the settings used on the echo last successful boot. This can be extremely useful in those situations echo where an ill-mannered installation program makes changes without bothering echo to ask for permission; such as associating every known file type to its echo application, or worse causing your system to crash. Also comes in echo handy if you wreck your registry while doing a little tweaking. echo. echo Usage: echo FIXREG /FIX -Restores the registry to the condition echo it was in at the last successful boot. echo. echo FIXREG /UNFIX -Restores the registry to the condition echo it was in prior to running FixReg. echo. pause cls echo. echo. echo ┌──────────────────────────────────────────────────┐ echo │ - FixReg v.1.0 ShareWare - │ echo │ │ echo │ ** Copyright (C) 1995 WILEY C. WIMBERLY, JR. ** │ echo └──────────────────────────────────────────────────┘ echo. echo. echo. echo ** WARNING ** echo. echo FixReg can not solve all problems. echo FixReg simply copies System.da0 to System.dat and User.da0 to User.dat after echo making a backup of all 4 files. echo Win95 updates System.da0 and User.da0 on each successful boot. echo. echo Remember: echo The author can not be held responsible for any damage you do to your system echo by using FixReg or by messing with these files. Please be careful. echo. pause cls echo. echo. echo ┌──────────────────────────────────────────────────┐ echo │ - FixReg v.1.0 ShareWare - │ echo │ │ echo │ ** Copyright (C) 1995 WILEY C. WIMBERLY, JR. ** │ echo └──────────────────────────────────────────────────┘ echo. echo ** FixReg is ShareWare ** echo FixReg may be distributed freely and uploaded to a BBS or online service. echo. echo If you use FixReg and find it helpful, please register. echo To register send five dollars ( $5.00 ) to: echo. echo Wiley C. Wimberly Jr. echo 104 Druid St. echo Greenville SC 29609 echo. echo Please include your address and e-mail address so that I can keep you echo informed of any new products or updates. echo. echo Send questions or comments to WileyCW@aol.com echo. echo Thank you. goto end :fix if not exist system.da0 goto fixcd if not exist user.da0 goto fixcd goto fixit :fixcd cd %winbootdir% if not exist system.da0 goto notfound if not exist user.da0 goto notfound :fixit echo Saving UnFix information... if exist system.dat attrib -h -r -s system.dat if exist system.da0 attrib -h -r -s system.da0 if exist user.dat attrib -h -r -s user.dat if exist user.da0 attrib -h -r -s user.da0 if exist system.dat copy system.dat system.xat > nul if exist system.da0 copy system.da0 system.xa0 > nul if exist user.dat copy user.dat user.xat > nul if exist user.da0 copy user.da0 user.xa0 > nul echo. echo Done. echo. echo Restoring the registry to its previous condition... echo. echo Copying system.da0 to system.dat copy system.da0 system.dat > nul echo Copying user.da0 to user.dat copy user.da0 user.dat > nul if exist system.dat attrib +h +r +s system.dat if exist system.da0 attrib +h +r +s system.da0 if exist user.dat attrib +h +r +s user.dat if exist user.da0 attrib +h +r +s user.da0 echo. echo Done. echo. echo *** Reboot your computer to finish the restoration. *** echo. goto end :unfix if not exist system.xat goto unfixcd goto unfixit :unfixcd cd %winbootdir% if not exist system.xat goto notfound if not exist user.xat goto notfound :unfixit echo UnFixing the registry... if exist system.dat attrib -h -r -s system.dat if exist system.da0 attrib -h -r -s system.da0 if exist user.dat attrib -h -r -s user.dat if exist user.da0 attrib -h -r -s user.da0 if exist system.xat copy system.xat system.dat > nul if exist system.xa0 copy system.xa0 system.da0 > nul if exist user.xat copy user.xat user.dat > nul if exist user.xa0 copy user.xa0 user.da0 > nul if exist system.dat attrib +h +r +s system.dat if exist system.da0 attrib +h +r +s system.da0 if exist user.dat attrib +h +r +s user.dat if exist user.da0 attrib +h +r +s user.da0 echo. echo Done. echo. echo The registry has been returned to the condition it was in prior to echo running FixReg. echo. echo *** Reboot your computer to finish the restoration. *** echo. goto end :notfound echo. echo A required file was not found. echo Make sure that you are in the Windows directory. echo. pause goto end :end