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