home *** CD-ROM | disk | FTP | other *** search
/ DeathMatch Manifesto / DEATHMATCH.ISO / walkthru / doom2 / doomdemo.bat < prev    next >
DOS Batch File  |  1996-10-14  |  2KB  |  88 lines

  1. @echo off
  2.  
  3. if "%1"=="" goto help
  4.  
  5. if "%1"=="0" goto sorry
  6. if "%1"=="1" goto sorry
  7. if "%1"=="2" goto sorry
  8. if "%1"=="3" goto sorry
  9. if "%1"=="4" goto sorry
  10. if "%1"=="5" goto sorry
  11. if "%1"=="6" goto sorry
  12. if "%1"=="7" goto sorry
  13. if "%1"=="8" goto sorry
  14. if "%1"=="9" goto sorry
  15.  
  16. if "%1"=="00" goto noway
  17. if "%1"=="33" goto noway
  18. if "%1"=="34" goto noway
  19. if "%1"=="35" goto noway
  20. if "%1"=="36" goto noway
  21. if "%1"=="37" goto noway
  22. if "%1"=="38" goto noway
  23. if "%1"=="39" goto noway
  24. if "%1"=="40" goto noway
  25. if "%1"=="41" goto noway
  26. if "%1"=="42" goto noway
  27. if "%1"=="43" goto noway
  28. if "%1"=="44" goto noway
  29. if "%1"=="45" goto noway
  30. if "%1"=="46" goto noway
  31. if "%1"=="47" goto noway
  32. if "%1"=="48" goto noway
  33. if "%1"=="49" goto noway
  34. if "%1"=="50" goto noway
  35.  
  36. cls
  37. echo Be sure to have this batch file and the appropriate demo file in your
  38. echo DOOM II v1.9 directory or else it won't play back!
  39. echo.
  40. echo.
  41. echo If you have problems running this demo contact:
  42. echo    Steffen Itterheim (aka Duke Addict) 100606.2141@compuserve.com
  43. echo.
  44. echo.
  45. echo         Now playing back DOOM2_%1.LMP, press any key to start...
  46. pause>nul
  47.  
  48. cls
  49. more < doom2_%1.txt
  50. echo.
  51. pause
  52. cls
  53.  
  54. doom2.exe -playdemo doom2_%1
  55.  
  56. echo Finished Playback...
  57. goto exit
  58.  
  59. :help
  60. echo.
  61. echo SYNTAX : DOOMDEMO.BAT [Level ##]
  62. echo.
  63. echo example: DOOMDEMO 08
  64. echo                 this will run the demo from Map 8 (MAP08)
  65. echo          DOOMDEMO 23
  66. echo                 this will run the demo from Map 23 (MAP23)
  67. echo.
  68. goto exit
  69.  
  70. :sorry
  71. echo.
  72. echo Error: the first (and only) parameter has only one digit!
  73. echo        If you want to play the demo from Level 8 use this syntax:
  74. echo.
  75. echo          DOOMDEMO 08
  76. echo                 note the leading 0 for levels between 1 and 9!
  77. echo.
  78. echo *****************************************************************************
  79. goto help
  80.  
  81. :noway
  82. echo.
  83. echo Sorry, this level does not exist: MAP%1
  84. echo.
  85. goto exit
  86.  
  87. :exit
  88.