home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol8n01.zip / VOLUME.BAT < prev   
DOS Batch File  |  1988-09-18  |  550b  |  17 lines

  1. ECHO OFF
  2. IF %4==has GOTO nolabel
  3. IF NOT %5==%DISKID% GOTO WRONG
  4. ECHO Yes, the disk in drive %3: is labeled "%DISKID%".
  5. ECHO This is just a sample VOLUME.BAT.  Create your own
  6. ECHO version that DOES something when the disk is verified.
  7. GOTO END
  8. :nolabel
  9. ECHO The disk you put in drive %3: has no label.
  10. ECHO Put the disk labelled "%DISKID%" in drive %3: and try again.
  11. GOTO END
  12. :WRONG
  13. ECHO The disk in drive %3: is labelled "%5", not "%DISKID%".
  14. ECHO Put the disk labelled "%DISKID%" in drive %3: and try again.
  15. :END
  16. DEL CHEKLABL.BAT
  17.