Category : Utilities for DOS and Windows Machines
Archive   : DSKREADY.ZIP
Filename : TEST.BAT

 
Output of file : TEST.BAT contained in archive : DSKREADY.ZIP
ECHO OFF
ECHO DSKREADY test program. Syntax TEST {Drive:}
if exist dskready.com goto TEST

ECHO DSKREADY.COM does not exist !!!
GOTO END

:TEST
if NOT %1=="" GOTO VALID
echo Invalid Drive Specified ( %1 ?)
GOTO END

:VALID
DSKREADY %1
IF ERRORLEVEL == 255 GOTO NEXIST
IF ERRORLEVEL == 12 GOTO FAIL
IF ERRORLEVEL == 2 GOTO OPEN
IF ERRORLEVEL == 0 GOTO READY
echo UNKNOWN ERRORLEVEL !!!! (%ERRORLEVEL%)
GOTO END

:NEXIST
ECHO Drive %1 does not exist
GOTO END

:FAIL
ECHO General Failure (Disk not formatted ?)
GOTO END

:OPEN
ECHO DOOR OPEN (Disk NOT Available)
GOTO END

:READY
ECHO Drive %1 is Ready


:END


  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : DSKREADY.ZIP
Filename : TEST.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/