home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / QEXIST.ZIP / QE.BAT next >
DOS Batch File  |  1989-08-24  |  656b  |  41 lines

  1. echo off
  2. qexist %1
  3. if errorlevel 255 goto 255
  4. if errorlevel 31 goto 31
  5. if errorlevel 27 goto 27
  6. if errorlevel 26 goto 26
  7. if errorlevel 23 goto 23
  8. if errorlevel 21 goto 21
  9. if errorlevel 20 goto 20
  10. if errorlevel 3 goto 3
  11. if errorlevel 2 goto 2
  12. echo File %1 Exists
  13. goto done
  14. :255
  15. echo Usage Error
  16. goto done
  17. :31
  18. echo General Failure Reading Disk
  19. goto done
  20. :27 
  21. echo Sector Not Found on Disk
  22. goto done
  23. :26
  24. echo Not a DOS/OS2 Disk
  25. goto done
  26. :23
  27. echo CRC error on Disk
  28. goto done
  29. :21 
  30. echo Drive Not Ready
  31. goto done
  32. :20
  33. echo Bad Unit Number
  34. goto done
  35. :3
  36. echo Path %1 not found
  37. goto done
  38. :2
  39. echo File %1 does not exist
  40. :done
  41.