home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Doom Levels / 1000DOOMLevels-3DSharewareGames.bin / pc / doomwads / flame13 / flame.bat next >
DOS Batch File  |  1994-07-06  |  1KB  |  55 lines

  1. @echo off
  2. if not exist doom.exe goto noexe
  3. if not exist dehacked.exe goto nohack
  4. if not exist flamethr.deh goto noflame
  5. if "%1"=="" goto noarg
  6. if "%1"=="in" goto in
  7. if "%1"=="IN" goto in
  8. if "%1"=="out" goto out
  9. if "%1"=="OUT" goto out
  10. :noarg
  11. echo This batch file automates the flamethrower patch installation.
  12. echo To install the flamethrower type:
  13. echo.
  14. echo flame in
  15. echo.
  16. echo A backup patch file will be saved and the new weapon will be put in.
  17. echo To remove the flamethrower and restore the exe, type:
  18. echo.
  19. echo flame out
  20. echo.
  21. echo I hope you enjoy this new weapon...now go toast some demon butt!
  22. echo.
  23. goto end
  24. :noexe
  25. echo ERROR: Can't find file doom.exe
  26. echo Be sure this batch file is run from the same directory.
  27. goto end
  28. :nohack
  29. echo ERROR: Can't find dehacked.exe
  30. echo You must have dehacked.exe in the same directory as this batch file.
  31. goto end
  32. :noflame
  33. echo ERROR: Can't find flamethr.deh
  34. echo Hmmm...something seems to have happened to the patch file.
  35. echo Be sure this batch file is run from the same directory.
  36. goto end
  37. :in
  38. dehacked -save oldexe.deh
  39. dehacked -load flamethr.deh
  40. cls
  41. echo Flamethrower installed - go toast some demon ass!
  42. echo.
  43. goto end
  44. :out
  45. if not exist oldexe.deh goto nobkup
  46. dehacked -load oldexe.deh
  47. cls
  48. echo Flamethrower removed - too hot for ya, eh?
  49. echo.
  50. goto end
  51. :nobkup
  52. echo ERROR: Can't find oldexe.deh
  53. echo Sorry, the backup patch seems to have disappeared.
  54. :end
  55.