home *** CD-ROM | disk | FTP | other *** search
/ WADS of WADS / WadsOfWads.1994.zip / OTHER / DMCHECK / DOOMVER.BAT < prev    next >
DOS Batch File  |  1994-09-09  |  2KB  |  63 lines

  1. @echo off
  2. cls
  3. dmcheck w /q
  4. echo  
  5. if not errorlevel 255 goto not255
  6. echo No DOOM version found!
  7. goto end
  8. :not255
  9. if not errorlevel 250 goto not250
  10. echo Version is sharewear
  11. goto end
  12. :not250
  13. if not errorlevel 20 goto not20
  14. echo DOOM II
  15. goto end
  16. :not20
  17. if not errorlevel 6 goto not6
  18. dmcheck /q v 1.666
  19. if not errorlevel 1 goto ok6
  20. echo You have version 1.666 all right, but it's the sharewear version!
  21. goto end
  22. :ok6
  23. echo Since you have DOOM 1.666, then the PWAD should be executed with
  24. echo DOOM -FILE FOREST.WAD DEMO12.WAD, otherwise DOOM would tell you
  25. echo that the demos were not for ver 1.666 and would exit.
  26. goto end
  27. :not6
  28. if not errorlevel 5 goto not5
  29. echo DOOM 1.5 beta, this is only a sharewear version.
  30. goto end
  31. :not5
  32. if not errorlevel 4 goto not4
  33. echo DOOM 1.4 beta, same here, sharewear.
  34. goto end
  35. :not4
  36. if not errorlevel 3 goto not3
  37. echo Since you have DOOM 1.2, then we could run a PWAD made for it.
  38. echo instead of displaying this.
  39. dmcheck /q v 1.2
  40. if not errorlevel 1 goto end
  41. echo but since you have the sharewear version, we still can't.
  42. goto end
  43. :not3
  44. if not errorlevel 2 goto not2
  45. echo Somebody that has DOOM 1.1 would get a message saying that the
  46. echo PWAD isn't usable with that version and he should upgrade to 1.2
  47. dmcheck /q v 1.1
  48. if not errorlevel 1 goto end
  49. echo Also, this is only the sharewear of 1.1, sorry can't do much!
  50. goto end
  51. :not2
  52. if not errorlevel 1 goto not1
  53. echo And for DOOM 0.9, you have to upgrade to 1.1, then 1.2 and today 1.666!
  54. dmcheck /q v 0.9
  55. if not errorlevel 1 goto end
  56. echo on top of that, this is the first sharewear release of DOOM!
  57. goto end
  58. :not1
  59. echo Oops got an errorlevel of 0 which shouldn't happen!
  60. echo Please send e-mail to me (Jean-Serge Gagnon) at az589@freenet.carleton.ca
  61. echo and tell me about it. Thanks.
  62. :end
  63.