home *** CD-ROM | disk | FTP | other *** search
/ Doom 2 Explosion / Doom2Explosion.bin / doom2exp / programs / s4doom12 / sdoom.bat < prev   
DOS Batch File  |  1994-02-19  |  2KB  |  109 lines

  1. @echo off
  2. rem This Batch will initialize the BNU Fossil Driver to work with both
  3. rem Modem and Direct Link Connections.
  4. echo SDOOM for DOOM 1.2, created 1994 by Gooseman
  5. if "%1" == "d" goto direct
  6. if "%1" == "D" goto direct
  7. if "%1" == "m" goto modem
  8. if "%1" == "M" goto modem
  9. echo\
  10. echo USAGE: SDOOM type port {init}
  11. echo\
  12. echo [Type] = M,D ............... M for Modem Play, D for Direct Link.
  13. echo [port] = 1,2,3,4 ........... COM Port Selection.
  14. echo {init} ..................... Init-String for your Modem (Optional)
  15. echo\
  16. echo * The whole SDOOM Package -HAS- to be run in your DOOM Directory.
  17. echo * For NON-Standard Com Ports, run BNUPORT to setup the BNU Fossil Driver.
  18. echo\
  19. echo Examples:
  20. echo\
  21. echo   SDOOM m 1
  22. echo\
  23. echo This will setup Doom 1.2 for modem play on port COM1:.
  24. echo\
  25. echo   SDOOM d 3
  26. echo\
  27. echo This will prevent Doom 1.2 Direct Link mode from becoming jumpy at the
  28. echo cost of a little speed. The example uses COM3:.
  29. echo\
  30. goto end
  31.  
  32. :modem
  33.  
  34. rem
  35. rem MODEM Setup
  36. rem
  37.  
  38. echo Doom 1.2 Modem Setup, initializing BNU Fossil Driver...
  39. BNU >nul
  40. if "%2" == "1" goto mcom1
  41. if "%2" == "2" goto mcom2
  42. if "%2" == "3" goto mcom3
  43. BNU /L3=9600,8N1 /I3+
  44. echo Raising DTR and RS Signals on COM4:...
  45. CARRIER 4 9600 >NUL
  46. goto msetup
  47.  
  48. :mcom1
  49. BNU /L0=9600,8N1 /I0+
  50. echo Raising DTR and RS Signals on COM1: ...
  51. CARRIER 1 9600 >NUL
  52. goto msetup
  53.  
  54. :mcom2
  55. BNU /L1=9600,8N1 /I1+
  56. echo Raising DTR and RS Signals on COM2: ...
  57. CARRIER 2 9600 >NUL
  58. goto msetup
  59.  
  60. :mcom3
  61. BNU /L2=9600,8N1 /I2+
  62. echo Raising DTR and RS Signals on COM3: ...
  63. CARRIER 3 9600 >NUL
  64.  
  65. :msetup
  66. if "%3" == "" goto setup
  67. echo Sending [%3] to Modem on COM%2: ...
  68. echo %3 >COM%2
  69.  
  70. :setup
  71. echo Running Doom 1.2 Setup ...
  72. SETUP
  73.  
  74. :remove
  75. BNU /U >NUL
  76. echo BNU Fossil Driver has been removed from memory.
  77. goto end
  78.  
  79. :direct
  80.  
  81. rem
  82. rem Direct Link Setup
  83. rem
  84.  
  85. echo Doom 1.2 Direct Link Setup, initializing BNU Fossil Driver...
  86. BNU >nul
  87.  
  88. if "%2" == "1" goto dcom1
  89. if "%2" == "2" goto dcom2
  90. if "%2" == "3" goto dcom3
  91. BNU /L3=4800,8N1 /I3+
  92. goto setup
  93.  
  94. :dcom1
  95. BNU /L0=4800,8N1 /I0+
  96. goto setup
  97.  
  98. :dcom2
  99. BNU /L1=4800,8N1 /I1+
  100. goto setup
  101.  
  102. :dcom3
  103. BNU /L2=4800,8N1 /I2+
  104. goto setup
  105.  
  106. :end
  107.  
  108.  
  109.