Category : HD Utilities
Archive   : BOOT11.ZIP
Filename : CHKBOOT.BAT

 
Output of file : CHKBOOT.BAT contained in archive : BOOT11.ZIP
@ECHO OFF
REM CHKBoot.BAT -- ensures Boot not damaged, repairs if it is.
REM last updated by Roedy Green 91/09/23
REM insert in AUTOEXEC.BAT to check Boot sector ok.
REM Must have done a BootSAVE C:\Boot.SAV first

C:\SYS\BootChk.COM C:\Boot.SAV
IF NOT Errorlevel 1 GOTO DONE

REM Boot check failed:
REM could be 4 reasons:

REM 1. Never set up Boot.SAV before

REM 2. Boot.SAV has been deleted

REM 3. Boot sector has been illegitimately tampered with

IF NOT EXIST C:\Boot.SAV GoTo MakeIt

Echo Abort now with Ctrl-Break if you do not wish to restore damaged Boot sector
Pause

REM Presume reason 3, try restoring

C:\SYS\BootREST.COM C:\Boot.SAV
IF NOT Errorlevel 1 GOTO Reboot
Echo Boot is still corrupted
Pause
:Reboot
C:\SYS\Reboot.Com

:MakeIt

REM Build a NEW Boot.SAV file
Echo Missing Boot.SAV file. Recreating it.
Pause
C:\SYS\BootSAVE.COM C:\Boot.SAV
Echo You might also want to create a new A: Rescue floppy boot disk soon
Echo Use BootSAVE A:\Boot.SAV
Pause

:DONE
REM -30-


  3 Responses to “Category : HD Utilities
Archive   : BOOT11.ZIP
Filename : CHKBOOT.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/