home *** CD-ROM | disk | FTP | other *** search
/ ZIP KIT / ZIP_KIT.iso / bat / dtest.bat < prev    next >
Encoding:
DOS Batch File  |  1994-01-12  |  729 b   |  43 lines

  1. @ECHO OFF
  2.   REM
  3.   REM  DTEST.BAT
  4.   REM    Makes sure a diskette is ready
  5.   REM    for multi-volume archiving.
  6.  
  7.   ECHO.
  8.   If %1x==A:x Goto Continue
  9.   If %1x==B:x Goto Continue
  10.   If %1x==a:x Goto Continue
  11.   If %1x==b:x Goto Continue
  12.   
  13.   ECHO No diskette drive was given (A: or B:).
  14.   ECHO.
  15.   Goto End
  16.  
  17. :Continue
  18.   DIR %1 /p
  19.   ECHO.
  20.   PAUSE 
  21.   ECHO.
  22.   ECHO Should diskette in %1 be erased ???
  23.   ECHO Please enter (y)es or (n)o.
  24.   ECHO.
  25.  
  26.   KEYS
  27.   IF ERRORLEVEL 121 GOTO Delete
  28.   IF ERRORLEVEL 110 GOTO End
  29.   IF ERRORLEVEL 89  GOTO Delete
  30.   IF ERRORLEVEL 78  GOTO End
  31.   GOTO End
  32.  
  33. :Delete
  34.   ECHO y | DEL %1\*.*
  35.   ECHO.
  36.  
  37. :End
  38.   Echo Press any key
  39.   Echo to return to ARJ.
  40.   Echo.
  41.   Pause>NUL
  42.  
  43.