home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / bbsfiles / ctdl_1.arj / RUNBBS.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-01-20  |  4.2 KB  |  173 lines

  1. Echo OFF
  2. c:
  3. cd\
  4. cls
  5. set jmodem=shutup
  6. if "%1" == "+doors" goto loop
  7. cd \
  8.  
  9. :loop
  10. c:
  11. cd \
  12. cd \k2ne
  13. cls
  14. ctdl color=31,66 +archlog +netlog dead=15,2 noluck=3,7 doormin=%drwy% %1
  15. if ERRORLEVEL 9 goto daystuff
  16. if ERRORLEVEL 8 goto bootStart
  17. if ERRORLEVEL 7 goto specialTask
  18. if ERRORLEVEL 6 goto timeout
  19. if ERRORLEVEL 4 goto doors
  20. if ERRORLEVEL 3 goto remote
  21. if ERRORLEVEL 2 goto fixit
  22. if ERRORLEVEL 0 goto done
  23.  
  24. :fixdate
  25. REM date < datetag.txt
  26. REM del datetag.txt
  27. goto loop
  28.  
  29. :remote
  30. Echo Remote Sysop Termination executed.
  31. REM customize for what you want done
  32. goto loop
  33.  
  34. :bootStart
  35. cd \
  36. REM killit
  37. boot
  38.  
  39. :doors
  40. c:
  41. cd \c\door
  42. dooropen.bat
  43.  
  44. :specialTask
  45.  
  46. REM To be used to go to BINKLEY TERM for FIDOnet
  47. c:
  48. cd \
  49.  
  50. REM following lines should be ENABLED if you want to get out of DoubleDos
  51. REM cd \
  52. REM del continue.bat
  53. REM copy continue.bin continue.bat
  54. REM boot
  55. REM this drops us out of DoubleDos and reboots to normal Dos then Binkley
  56.  
  57. REM following lines should be enabled if no operating system change needed
  58. e:
  59. cd \binkley
  60. binkley
  61.  
  62. goto loop
  63.  
  64. REM this section is here for EXAMPLE purposes to show what can
  65. REM be done automatically.  Remove or modify as needed.
  66. :daystuff
  67. Echo Daily Horoscope Generator in progress....
  68. c:
  69. cd \zodiac
  70. zodiac >logtext.004
  71. cd \c\hlp
  72. copy \zodiac\logtext.004 zodiac.hlp
  73. del \zodiac\logtext.004
  74. cls
  75. Echo TradeWars-1000 Daily Maintenance in progress....
  76. c:
  77. cd \
  78. cd \k2ne\door\twars
  79. twmaint.exe
  80. cls
  81. Echo MATRIX Conferences -- Echo Conference Maintenance in progress....
  82. cd \
  83. e:
  84. cd \binkley
  85. REM del binkley.log
  86. Renum -D 15 -N 1 100 -R f:\binkley\MESSAGES
  87. Renum -D 15 -N 1 150 -R f:\binkley\AMIGA
  88. Renum -D 15 -N 1 150 -R f:\binkley\UFO
  89. Renum -D 15 -N 1 150 -R f:\binkley\UNIX
  90. Renum -D 15 -N 1 100 -R f:\binkley\CBM
  91. Renum -D 15 -N 1  50 -R f:\binkley\COMM
  92. Renum -D 15 -N 1 350 -R f:\binkley\FOR-SALE
  93. Renum -D 15 -N 1 100 -R f:\binkley\CD_ECHO
  94. Renum -D 15 -N 1 300 -R f:\binkley\HAM
  95. Renum -D 15 -N 1 150 -R f:\binkley\HAMFEST
  96. Renum -D 15 -N 1  50 -R f:\binkley\HDCONF
  97. Renum -D 15 -N 1  50 -R f:\binkley\HDSALE
  98. Renum -D 15 -N 1 250 -R f:\binkley\MUSIC
  99. Renum -D 15 -N 1  50 -R f:\binkley\SCIENCE
  100. Renum -D 15 -N 1 200 -R f:\binkley\PACKET
  101. Renum -D 15 -N 1 100 -R f:\binkley\PHYSICS
  102. Renum -D 15 -N 1 100 -R f:\binkley\STOCK
  103. Renum -D 15 -N 1  50 -R f:\binkley\WARNINGS
  104. Renum -D 15 -N 1  50 -R f:\binkley\BAD_MSGS
  105. Renum -D 15 -N 1  50 -R f:\binkley\NJ-NET
  106. Renum -D 15 -N 1  50 -R f:\binkley\NJ-SYS
  107. Renum -D 15 -N 1  50 -R f:\binkley\RBBSBITS
  108. Renum -D 15 -N 1  50 -R f:\binkley\RBBS-DEV
  109. Renum -D 15 -N 1  50 -R f:\binkley\RBBS-SYS
  110. Renum -D 15 -N 1  50 -R f:\binkley\RBBS-SD
  111. Renum -D 15 -N 1 150 -R f:\binkley\CFORSALE
  112. Renum -D 15 -N 1  50 -R f:\binkley\DESQVIEW
  113. Renum -D 15 -N 1  50 -R f:\binkley\DOORWARE
  114. Renum -D 15 -N 1 150 -R f:\binkley\SWL
  115. Renum -D 15 -N 1  50 -R f:\binkley\WINDOWS
  116. Renum -D 15 -N 1  50 -R f:\binkley\ZMODEM
  117. Renum -D 15 -N 1 150 -R f:\binkley\TECH
  118. Renum -D 15 -N 1  50 -R f:\binkley\51STATE
  119. Renum -D 15 -N 1 100 -R f:\binkley\SYSOP266
  120. Renum -D 15 -N 1  50 -R f:\binkley\PCUG
  121. Renum -D 15 -N 1 100 -R f:\binkley\PHIL
  122. Smlindex.exe
  123. ReplyLnk -F echolist.txt
  124. goto loop
  125. REM enable next line (and disable previous line) to go to BINKLEYTERM from here.
  126. REM goto binkend
  127.  
  128. :fixit
  129. c:
  130. cd \c
  131. REM now we are in the Citadel 'home' directory
  132. confg n
  133. ctdl +recover color=31,66 +archlog +netlog dead=15,2 noluck=3,7 doormin=%drwy% %1
  134. REM '+recover' is only there to trigger a crash message in Aide>
  135. if ERRORLEVEL 9 goto daystuff
  136. if ERRORLEVEL 8 goto bootStart
  137. if ERRORLEVEL 7 goto specialTask
  138. if ERRORLEVEL 6 goto timeout
  139. if ERRORLEVEL 4 goto doors
  140. if ERRORLEVEL 3 goto remote
  141. if ERRORLEVEL 2 goto fixit
  142. if ERRORLEVEL 0 goto done
  143.  
  144. REM disable this next block of code if you can't fit your backed up
  145. REM files on your B drive floppy or if you don't have a B drive.
  146. REM also - modify if needed to put backup set elsewhere.
  147. :timeout
  148. c:
  149. cd \c\sys\back
  150. pkzip -a bbs ..\c*.sys
  151. copy bbs.zip b:bbs.zip
  152. del bbs.zip
  153. cd \
  154. delay 3
  155. goto loop
  156.  
  157. :done
  158. cd\
  159. echo off
  160. cls
  161. if "%1" == "bink" goto binkend
  162. goto realend
  163.  
  164. REM following lines return us to Binkley front-end
  165. REM if you use this - modify it to suit your environment
  166. :binkend
  167. e:
  168. cd \binkley
  169. binkley
  170.  
  171. :realend
  172. type menu.txt
  173.