home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 02a / om42_1.zip / BBS-BATS.DOC next >
Text File  |  1989-10-07  |  12KB  |  392 lines

  1. There are eight different .BAT files that are used with KingNet: Door(X).Bat,
  2. RCTTY.BAT, UPLOAD.BAT/DOWNLOAD.BAT, NEWS.BAT, VIEW.BAT, LIST.BAT, TEST.BAT,
  3. and EXTRACT.BAT.  The following is a brief decription of how to use them
  4. and set them up.  If you are not using a registered copy of DOORWAY.EXE
  5. then you will need to change SYS to COM1, COM2, or LOCAL.  Using the SYS
  6. tells doorway to read the DOOR.SYS file that is created by KingNet.
  7.  
  8. ***************************************************************************
  9.                              DOOR(X).BAT
  10. ***************************************************************************
  11.  
  12.  
  13.  DOOR(X).BAT + DOORWAY.ARC -- Operates the Doors.  If you are using
  14.    Doorway.exe, then you have a possibility of 9435 (37 x 255) doors.
  15.    Doorway.exe allows you to call 0-9 and a-z doors from each door
  16.    menu.  If you are not using Doorway.exe then you have a possiblity
  17.    of 255 doors.  You must use some program like Doorway.exe, Gateway,
  18.    of the DOS command 'CTTY' to redirect the screen to the com port.
  19.    These are the batch files that will run the programs accessed through
  20.    the doors. Using WATCHDOG and GATEWAY, a batch file to run a BBS listing
  21.    program called TELEPROG would look like this:
  22.  
  23.          DOOR1.BAT      ECHO OFF
  24.                         WATCHDG1 ON
  25.                         CTTY GATE1
  26.                         CLS
  27.                         ECHO      Now Loading Telprog......
  28.                         STARFLIT
  29.                         CTTY CON
  30.                         WATCHDG1 OFF
  31.  
  32. If you are using Doorway.exe the DOOR1.BAT may look like this:
  33.  
  34. REM LOCAL STAYS AS IT IS FOR SYSOP IN LOCAL MODE
  35. ECHO OFF
  36. IF %1 == LOCAL doorway SYS /O: /R:^K /F: /L: /B:MS /I:C:\KBBS\DOORS\MENU1.DOR
  37. IF %1 == REMOTE doorway SYS /O: /R:^K /F: /L: /B:MS /I:C:\KBBS\DOORS\MENU1.DOR
  38.  
  39. MENU1.DOR may look like this:
  40.  
  41. Welcome to Jacob Ladder's BBS quiz door.   Select  from one of the
  42. following doors.  When  through  you will return to this menu.  To
  43. end this doors session type either (E)xit or selection 3. You may
  44. need your NUMLOCK on for some of these programs.  These programs are
  45. available for download in the files section: KQ2.ARC and BQUIZ2.ARC.
  46.  
  47.     NOTICE ... DO NOT TYPE RETURN, TYPE ONLY THE NUMBER.
  48.  
  49. 1. Bible Quiz2 : 100 questions - 10 each at random (ANSI color/mono).
  50. 2. KingQuiz2   : 5 different bible quizes - 10 ?'s each (ANSI color/mono)
  51. 3. Trivia      : Trivia game - can add questions (mono).  Use uppercase!
  52. 4. Return to board.
  53.  
  54. M:Please enter your selection (1-4):
  55.  
  56. /T:^C /F: /L: /B:MS /R:^X /P:C:\KBBS\BQUIZ2.EXE ANSI
  57. /T:^C /F: /L: /B:MS /R:^X /P:C:\KBBS\KQ.EXE
  58. /T:^C /F: /L: /B:MS /R:^X /P:C:\KBBS\TGAME.COM SYSOP
  59.  
  60. In this example I could use 0-9 and a-z for a possible use of 37
  61. programs through one door.
  62.  
  63. *****************************************************************************
  64.                                 NEWS.BAT
  65. *****************************************************************************
  66.  
  67. This is the news door that is activated after the caller signs on and is
  68. activated by NEWSDOR=TRUE or de-activated BY NEWSDOR=FALSE in the King.Cnf
  69. file.  I am using TODAYPC2.EXE and DOORWAY.EXE for my news doors so my .bat
  70. file looks like this:
  71.  
  72. ECHO OFF
  73. :DOORWAY SYS /O: /R:^K /G:ON /P:TODAYPC2.EXE CLEAR WAIT
  74. IF %1 == LOCAL TODAYPC2.EXE CLEAR WAIT
  75. IF %1 == REMOTE SCRNPORT TODAYPC2.EXE CLEAR WAIT
  76.  
  77.  
  78. ******************************************************************************
  79.                                 RCTTY.BAT
  80. ******************************************************************************
  81.  
  82. This file controls the "DROP TO DOS" from remote.  There are two possible ways
  83. to handle this.  Again I use DOORWAY.EXE for security.
  84.  
  85. ECHO OFF
  86. doorway SYS /I:C:\TEST\RCTTY.INF /O: /M:45 /r:^K /L: /B:MS /F: /C:DOS
  87.            /PASSWORD:MT
  88.  
  89.  
  90. ******************************************************************************
  91.                                 VIEW.BAT
  92. ******************************************************************************
  93.  
  94. This file controls the "VIEW FILE CONTENTS" feature in the files system.
  95. It tell the bbs system the file compression program to use and the name
  96. of the archive file whose contents we want to view. There is no limit on
  97. how many different file compression programs that can be used.
  98.  
  99. :
  100. :%1 IS THE ARCHIVE FILE EXTENSION.  THERE IS LIMIT TO THE NUMBER OF FILE
  101. :ARCHIVE PROGRAMS THAT YOU MAY USE.  %2 IS THE FILE WHOSE CONTENTS WE ARE
  102. :GOING TO VIEW.
  103. :
  104. ECHO OFF
  105. BREAK OFF
  106. IF %1 == .ARC GOTO ARC
  107. IF %1 == .PAK GOTO PAK
  108. IF %1 == .ZIP GOTO ZIP
  109. IF %1 == .LZH GOTO LZH
  110. :ARC
  111. PKXARC -V %2 > ARC.TMP
  112. GOTO ENDER
  113. :PAK
  114. PAK V %2 > ARC.TMP
  115. GOTO ENDER
  116. :ZIP
  117. PKUNZIP -V %2 > ARC.TMP
  118. GOTO ENDER
  119. :LZH
  120. LHARC L %2 > ARC.TMP
  121. GOTO ENDER
  122. :ENDER
  123.  
  124. ******************************************************************************
  125.                                 LIST.BAT
  126. ******************************************************************************
  127.  
  128. This file controls the "LIST TEXT FILE WITHIN AN ARCHIVE FILE" feature in
  129. the files system.  It tell the bbs system the file compression program to
  130. use, the name of the archive file, and the name of the text file within
  131. the archive file that we want to list.  There is no limit on how many
  132. different file compression programs that can be used.
  133.  
  134. :
  135. : %1 IS THE ARCHIVE FILE EXTENSION.  THERE IS LIMIT TO THE NUMBER OF FILE
  136. : ARCHIVE PROGRAMS THAT YOU MAY USE.  %2 IS THE FILE WHOSE CONTENTS WE ARE
  137. : GOING TO VIEW. %3 IS THE TEXT FILE WITHIN THE ARCHIVE FILE WE ARE GOING
  138. : TO LIST.
  139. :
  140. :ECHO OFF
  141. BREAK OFF
  142. IF %1 == .ARC GOTO ARC
  143. IF %1 == .PAK GOTO PAK
  144. IF %1 == .ZIP GOTO ZIP
  145. IF %1 == .LZH GOTO LZH
  146. :ARC
  147. PKXARC -C %2 %3 > ARC.TMP
  148. GOTO ENDER
  149. :PAK
  150. PAK P %2 %3 > ARC.TMP
  151. GOTO ENDER
  152. :ZIP
  153. PKUNZIP -C %2 %3 > ARC.TMP
  154. GOTO ENDER
  155. :LZH
  156. LHARC p %2 %3 > ARC.TMP
  157. GOTO ENDER
  158. :ENDER
  159.  
  160. ******************************************************************************
  161.                               EXTRACT.BAT
  162. ******************************************************************************
  163.  
  164. This file controls the "EXTRACT PART OF AN ARCHIVE FILE TO EXTRACT AND
  165. DOWNLOAD" feature in the files system.  It tell the bbs system the file
  166. compression program to use, the name of the archive file, and the name of
  167. the text file within the archive file that we want to extract.  There is
  168. no limit on how many different file compression programs that can be used.
  169.  
  170. :
  171. : %1 IS THE ARCHIVE FILE EXTENSION.  THERE IS LIMIT TO THE NUMBER OF FILE
  172. : ARCHIVE PROGRAMS THAT YOU MAY USE.  %2 IS THE FILE WHOSE CONTENTS WE ARE 
  173. : GOING TO VIEW. %3 IS THE TEXT FILE WITHIN THE ARCHIVE FILE WE ARE GOING
  174. : TO LIST.
  175. :
  176. :ECHO OFF
  177. BREAK OFF
  178. IF %1 == .ARC GOTO ARC
  179. IF %1 == .PAK GOTO PAK
  180. IF %1 == .ZIP GOTO ZIP
  181. IF %1 == .LZH GOTO LZH
  182. :ARC
  183. PKXARC -E %2 %3 
  184. GOTO ENDER
  185. :PAK
  186. PAK E %2 %3
  187. GOTO ENDER
  188. :ZIP
  189. PKUNZIP -E %2 %3 
  190. GOTO ENDER
  191. :LZH
  192. LHARC e %2 %3 
  193. GOTO ENDER
  194. :ENDER
  195.  
  196. ******************************************************************************
  197.                                 TEST.BAT
  198. ******************************************************************************
  199.  
  200. This file controls the "TEST ARCHIVE FILE" feature in the files system.
  201. It tell the bbs system the file compression program to use and the name
  202. of the archive file whose integrity that we to test. There is no limit on
  203. how many different file compression programs that can be used.
  204.  
  205. :
  206. : %1 IS THE ARCHIVE FILE EXTENSION.  THERE IS LIMIT TO THE NUMBER OF FILE
  207. : ARCHIVE PROGRAMS THAT YOU MAY USE.  %2 IS THE FILE WHOSE INTEGRITY WE ARE 
  208. : GOING TO TEST.
  209. :
  210. :ECHO OFF
  211. BREAK OFF
  212. IF %1 == .ARC GOTO ARC
  213. IF %1 == .PAK GOTO PAK
  214. IF %1 == .ZIP GOTO ZIP
  215. IF %1 == .LZH GOTO LZH
  216. :ARC
  217. PKXARC -T %2 > ARC.TMP
  218. GOTO ENDER
  219. :PAK
  220. PAK T %2 > ARC.TMP
  221. GOTO ENDER
  222. :ZIP
  223. PKUNZIP -T %2 > ARC.TMP
  224. GOTO ENDER
  225. :LZH
  226. LHARC t %2 > ARC.TMP
  227. GOTO ENDER
  228. :ENDER
  229.  
  230. ******************************************************************************
  231.                         UPLOAD.BAT & DOWNLOAD.BAT
  232. ******************************************************************************
  233.  
  234. These two files control the file transfer protocls for uploads and downloads
  235. to the BBS.  At this time we only support the use of DSZ.COM, JMODEM.COM,
  236. LYNX.EXE, CLINK.EXE (SEAlink), PCKERMIT.EXE, WXFER.COM (WXmodem), and
  237. QMXFER.COM (IMODEM). These are all good file transfer protocols, but the
  238. final choice is yours.  You will see this in the KING.CNF file:
  239.  
  240. YMODEMG=TRUE
  241. I_MODEM=TRUE
  242. J_MODEM=TRUE
  243. LYNXMDM=TRUE
  244. PCKERMT=TRUE
  245. QMODEMG=TRUE
  246. SEALINK=TRUE
  247. WXMODEM=TRUE
  248. X_MODEM=TRUE
  249. XMODEMK=TRUE
  250. Y_MODEM=TRUE
  251. Z_MODEM=TRUE
  252.  
  253. FOR FULL INFORMATION ON THE PROTOCOLS, READ PROTOCOL.DOC.
  254.  
  255. * UPLOAD.BAT *
  256.  
  257. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  258. ::                                                                        ::
  259. ::   %1 = FILE TRANSFER PROTOCOL                                          ::
  260. ::   %2 = BAUD RATE                                                       ::
  261. ::   %3 = COMM PORT                         << LEGEND >>                  ::
  262. ::   %4 = FILE #1                                                         ::
  263. ::   %5 = FILE #2                                                         ::
  264. ::   %6 = FILE #3                                                         ::
  265. ::                                                                        ::
  266. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  267. ECHO OFF
  268. IF %1 == IMODEM GOTO IUP
  269. IF %1 == JMODEM GOTO JUP
  270. IF %1 == LYNX GOTO LUP
  271. IF %1 == QMODEM-G GOTO QUP
  272. IF %1 == XMODEM GOTO XUP
  273. IF %1 == XMODEM-K GOTO KUP
  274. IF %1 == YMODEM GOTO YUP
  275. IF %1 == YMODEM-G GOTO GUP
  276. IF %1 == ZMODEM GOTO ZUP
  277. IF %1 == WXMODEM GOTO WUP
  278. IF %1 == PCKERMIT GOTO PUP
  279. IF %1 == SEALINK GOTO SUP
  280. :IUP
  281. QMXFER -C -R -L COM%3 -B %2 -P I -F %4
  282. GOTO ENDER
  283. :JUP
  284. JMODEM R%3 %4
  285. JMODEM R%3 %5
  286. JMODEM R%3 %6
  287. GOTO ENDER
  288. :LUP
  289. LYNX R C:\TEST\ /%2 /%3 /D /H 
  290. GOTO ENDER
  291. :QUP
  292. DSZ port %3 rx -g %4
  293. GOTO ENDER
  294. :XUP
  295. DSZ port %3 rc %4
  296. GOTO ENDER
  297. :KUP
  298. DSZ port %3 rc %4
  299. GOTO ENDER
  300. :YUP
  301. DSZ port %3 rb -k
  302. GOTO ENDER
  303. :GUP
  304. DSZ port %3 rb -g
  305. GOTO ENDER
  306. :ZUP
  307. DSZ port %3 rz
  308. GOTO ENDER
  309. :WUP
  310. WXFER -c speed %2 port %3 -r %4
  311. GOTO ENDER
  312. :PUP
  313. PCKERMIT -L COM%3 -B %2 -M 31 -P N -R -C
  314. GOTO ENDER
  315. :SUP
  316. CLINK R /P%3 /B%2 /O
  317. GOTO ENDER
  318. :ENDER
  319.  
  320.  
  321.  
  322. * DOWNLOAD.BAT *
  323.  
  324.  
  325. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  326. ::                                                                        ::
  327. ::   %1 = FILE TRANSFER PROTOCOL                                          ::
  328. ::   %2 = BAUD RATE                                                       ::
  329. ::   %3 = COMM PORT                         << LEGEND >>                  ::
  330. ::   %4 = FILE #1                                                         ::
  331. ::   %5 = FILE #2                                                         ::
  332. ::   %6 = FILE #3                                                         ::
  333. ::                                                                        ::
  334. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  335. ECHO OFF
  336. IF %1 == IMODEM GOTO IUP
  337. IF %1 == JMODEM GOTO JUP
  338. IF %1 == LYNX GOTO LUP
  339. IF %1 == QMODEM-G GOTO QUP
  340. IF %1 == XMODEM GOTO XUP
  341. IF %1 == XMODEM-K GOTO KUP
  342. IF %1 == YMODEM GOTO YUP
  343. IF %1 == YMODEM-G GOTO GUP
  344. IF %1 == ZMODEM GOTO ZUP
  345. IF %1 == WXMODEM GOTO WUP
  346. IF %1 == PCKERMIT GOTO PUP
  347. IF %1 == SEALINK GOTO SUP
  348. :IUP
  349. QMXFER -C -S -L COM%3 -B %2 -P I -F %4
  350. GOTO ENDER
  351. :JUP
  352. JMODEM.COM S%3 %4
  353. JMODEM.COM S%3 %5
  354. JMODEM.COM S%3 %5
  355. GOTO ENDER
  356. :LUP
  357. LYNX S /H /%2 /%3 %4 %5 %6
  358. GOTO ENDER
  359. :QUP
  360. DSZ port %3 sx %4
  361. GOTO ENDER
  362. :XUP
  363. DSZ port %3 sx %4
  364. GOTO ENDER
  365. :KUP
  366. DSZ port %3 sx -k %4
  367. GOTO ENDER
  368. :YUP
  369. DSZ port %3 sb -k %4 %5 %6
  370. GOTO ENDER
  371. :GUP
  372. DSZ port %3 sb %4 %5 %6
  373. GOTO ENDER
  374. :ZUP
  375. DSZ port %3 sz %4 %5 %6
  376. GOTO ENDER
  377. :WUP
  378. WXFER -c speed %2 port %3 -s %4
  379. GOTO ENDER
  380. :PUP
  381. PCKERMIT -L COM%3 -B %2 -M 31 -P N -S %4 %5 %6 -C
  382. GOTO ENDER
  383. :SUP
  384. CLINK T %4 %5 %6 /P%3 /B%2 /O
  385. :ENDER
  386.  
  387.  
  388. ******************************************************************************
  389.  
  390. I hope that this information will help you in the smooth set-up and operation
  391. of your BBS.