home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
02a
/
om42_1.zip
/
BBS-BATS.DOC
next >
Wrap
Text File
|
1989-10-07
|
12KB
|
392 lines
There are eight different .BAT files that are used with KingNet: Door(X).Bat,
RCTTY.BAT, UPLOAD.BAT/DOWNLOAD.BAT, NEWS.BAT, VIEW.BAT, LIST.BAT, TEST.BAT,
and EXTRACT.BAT. The following is a brief decription of how to use them
and set them up. If you are not using a registered copy of DOORWAY.EXE
then you will need to change SYS to COM1, COM2, or LOCAL. Using the SYS
tells doorway to read the DOOR.SYS file that is created by KingNet.
***************************************************************************
DOOR(X).BAT
***************************************************************************
DOOR(X).BAT + DOORWAY.ARC -- Operates the Doors. If you are using
Doorway.exe, then you have a possibility of 9435 (37 x 255) doors.
Doorway.exe allows you to call 0-9 and a-z doors from each door
menu. If you are not using Doorway.exe then you have a possiblity
of 255 doors. You must use some program like Doorway.exe, Gateway,
of the DOS command 'CTTY' to redirect the screen to the com port.
These are the batch files that will run the programs accessed through
the doors. Using WATCHDOG and GATEWAY, a batch file to run a BBS listing
program called TELEPROG would look like this:
DOOR1.BAT ECHO OFF
WATCHDG1 ON
CTTY GATE1
CLS
ECHO Now Loading Telprog......
STARFLIT
CTTY CON
WATCHDG1 OFF
If you are using Doorway.exe the DOOR1.BAT may look like this:
REM LOCAL STAYS AS IT IS FOR SYSOP IN LOCAL MODE
ECHO OFF
IF %1 == LOCAL doorway SYS /O: /R:^K /F: /L: /B:MS /I:C:\KBBS\DOORS\MENU1.DOR
IF %1 == REMOTE doorway SYS /O: /R:^K /F: /L: /B:MS /I:C:\KBBS\DOORS\MENU1.DOR
MENU1.DOR may look like this:
Welcome to Jacob Ladder's BBS quiz door. Select from one of the
following doors. When through you will return to this menu. To
end this doors session type either (E)xit or selection 3. You may
need your NUMLOCK on for some of these programs. These programs are
available for download in the files section: KQ2.ARC and BQUIZ2.ARC.
NOTICE ... DO NOT TYPE RETURN, TYPE ONLY THE NUMBER.
1. Bible Quiz2 : 100 questions - 10 each at random (ANSI color/mono).
2. KingQuiz2 : 5 different bible quizes - 10 ?'s each (ANSI color/mono)
3. Trivia : Trivia game - can add questions (mono). Use uppercase!
4. Return to board.
M:Please enter your selection (1-4):
/T:^C /F: /L: /B:MS /R:^X /P:C:\KBBS\BQUIZ2.EXE ANSI
/T:^C /F: /L: /B:MS /R:^X /P:C:\KBBS\KQ.EXE
/T:^C /F: /L: /B:MS /R:^X /P:C:\KBBS\TGAME.COM SYSOP
In this example I could use 0-9 and a-z for a possible use of 37
programs through one door.
*****************************************************************************
NEWS.BAT
*****************************************************************************
This is the news door that is activated after the caller signs on and is
activated by NEWSDOR=TRUE or de-activated BY NEWSDOR=FALSE in the King.Cnf
file. I am using TODAYPC2.EXE and DOORWAY.EXE for my news doors so my .bat
file looks like this:
ECHO OFF
:DOORWAY SYS /O: /R:^K /G:ON /P:TODAYPC2.EXE CLEAR WAIT
IF %1 == LOCAL TODAYPC2.EXE CLEAR WAIT
IF %1 == REMOTE SCRNPORT TODAYPC2.EXE CLEAR WAIT
******************************************************************************
RCTTY.BAT
******************************************************************************
This file controls the "DROP TO DOS" from remote. There are two possible ways
to handle this. Again I use DOORWAY.EXE for security.
ECHO OFF
doorway SYS /I:C:\TEST\RCTTY.INF /O: /M:45 /r:^K /L: /B:MS /F: /C:DOS
/PASSWORD:MT
******************************************************************************
VIEW.BAT
******************************************************************************
This file controls the "VIEW FILE CONTENTS" feature in the files system.
It tell the bbs system the file compression program to use and the name
of the archive file whose contents we want to view. There is no limit on
how many different file compression programs that can be used.
:
:%1 IS THE ARCHIVE FILE EXTENSION. THERE IS LIMIT TO THE NUMBER OF FILE
:ARCHIVE PROGRAMS THAT YOU MAY USE. %2 IS THE FILE WHOSE CONTENTS WE ARE
:GOING TO VIEW.
:
ECHO OFF
BREAK OFF
IF %1 == .ARC GOTO ARC
IF %1 == .PAK GOTO PAK
IF %1 == .ZIP GOTO ZIP
IF %1 == .LZH GOTO LZH
:ARC
PKXARC -V %2 > ARC.TMP
GOTO ENDER
:PAK
PAK V %2 > ARC.TMP
GOTO ENDER
:ZIP
PKUNZIP -V %2 > ARC.TMP
GOTO ENDER
:LZH
LHARC L %2 > ARC.TMP
GOTO ENDER
:ENDER
******************************************************************************
LIST.BAT
******************************************************************************
This file controls the "LIST TEXT FILE WITHIN AN ARCHIVE FILE" feature in
the files system. It tell the bbs system the file compression program to
use, the name of the archive file, and the name of the text file within
the archive file that we want to list. There is no limit on how many
different file compression programs that can be used.
:
: %1 IS THE ARCHIVE FILE EXTENSION. THERE IS LIMIT TO THE NUMBER OF FILE
: ARCHIVE PROGRAMS THAT YOU MAY USE. %2 IS THE FILE WHOSE CONTENTS WE ARE
: GOING TO VIEW. %3 IS THE TEXT FILE WITHIN THE ARCHIVE FILE WE ARE GOING
: TO LIST.
:
:ECHO OFF
BREAK OFF
IF %1 == .ARC GOTO ARC
IF %1 == .PAK GOTO PAK
IF %1 == .ZIP GOTO ZIP
IF %1 == .LZH GOTO LZH
:ARC
PKXARC -C %2 %3 > ARC.TMP
GOTO ENDER
:PAK
PAK P %2 %3 > ARC.TMP
GOTO ENDER
:ZIP
PKUNZIP -C %2 %3 > ARC.TMP
GOTO ENDER
:LZH
LHARC p %2 %3 > ARC.TMP
GOTO ENDER
:ENDER
******************************************************************************
EXTRACT.BAT
******************************************************************************
This file controls the "EXTRACT PART OF AN ARCHIVE FILE TO EXTRACT AND
DOWNLOAD" feature in the files system. It tell the bbs system the file
compression program to use, the name of the archive file, and the name of
the text file within the archive file that we want to extract. There is
no limit on how many different file compression programs that can be used.
:
: %1 IS THE ARCHIVE FILE EXTENSION. THERE IS LIMIT TO THE NUMBER OF FILE
: ARCHIVE PROGRAMS THAT YOU MAY USE. %2 IS THE FILE WHOSE CONTENTS WE ARE
: GOING TO VIEW. %3 IS THE TEXT FILE WITHIN THE ARCHIVE FILE WE ARE GOING
: TO LIST.
:
:ECHO OFF
BREAK OFF
IF %1 == .ARC GOTO ARC
IF %1 == .PAK GOTO PAK
IF %1 == .ZIP GOTO ZIP
IF %1 == .LZH GOTO LZH
:ARC
PKXARC -E %2 %3
GOTO ENDER
:PAK
PAK E %2 %3
GOTO ENDER
:ZIP
PKUNZIP -E %2 %3
GOTO ENDER
:LZH
LHARC e %2 %3
GOTO ENDER
:ENDER
******************************************************************************
TEST.BAT
******************************************************************************
This file controls the "TEST ARCHIVE FILE" feature in the files system.
It tell the bbs system the file compression program to use and the name
of the archive file whose integrity that we to test. There is no limit on
how many different file compression programs that can be used.
:
: %1 IS THE ARCHIVE FILE EXTENSION. THERE IS LIMIT TO THE NUMBER OF FILE
: ARCHIVE PROGRAMS THAT YOU MAY USE. %2 IS THE FILE WHOSE INTEGRITY WE ARE
: GOING TO TEST.
:
:
:ECHO OFF
BREAK OFF
IF %1 == .ARC GOTO ARC
IF %1 == .PAK GOTO PAK
IF %1 == .ZIP GOTO ZIP
IF %1 == .LZH GOTO LZH
:ARC
PKXARC -T %2 > ARC.TMP
GOTO ENDER
:PAK
PAK T %2 > ARC.TMP
GOTO ENDER
:ZIP
PKUNZIP -T %2 > ARC.TMP
GOTO ENDER
:LZH
LHARC t %2 > ARC.TMP
GOTO ENDER
:ENDER
******************************************************************************
UPLOAD.BAT & DOWNLOAD.BAT
******************************************************************************
These two files control the file transfer protocls for uploads and downloads
to the BBS. At this time we only support the use of DSZ.COM, JMODEM.COM,
LYNX.EXE, CLINK.EXE (SEAlink), PCKERMIT.EXE, WXFER.COM (WXmodem), and
QMXFER.COM (IMODEM). These are all good file transfer protocols, but the
final choice is yours. You will see this in the KING.CNF file:
YMODEMG=TRUE
I_MODEM=TRUE
J_MODEM=TRUE
LYNXMDM=TRUE
PCKERMT=TRUE
QMODEMG=TRUE
SEALINK=TRUE
WXMODEM=TRUE
X_MODEM=TRUE
XMODEMK=TRUE
Y_MODEM=TRUE
Z_MODEM=TRUE
FOR FULL INFORMATION ON THE PROTOCOLS, READ PROTOCOL.DOC.
* UPLOAD.BAT *
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: %1 = FILE TRANSFER PROTOCOL ::
:: %2 = BAUD RATE ::
:: %3 = COMM PORT << LEGEND >> ::
:: %4 = FILE #1 ::
:: %5 = FILE #2 ::
:: %6 = FILE #3 ::
:: ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ECHO OFF
IF %1 == IMODEM GOTO IUP
IF %1 == JMODEM GOTO JUP
IF %1 == LYNX GOTO LUP
IF %1 == QMODEM-G GOTO QUP
IF %1 == XMODEM GOTO XUP
IF %1 == XMODEM-K GOTO KUP
IF %1 == YMODEM GOTO YUP
IF %1 == YMODEM-G GOTO GUP
IF %1 == ZMODEM GOTO ZUP
IF %1 == WXMODEM GOTO WUP
IF %1 == PCKERMIT GOTO PUP
IF %1 == SEALINK GOTO SUP
:IUP
QMXFER -C -R -L COM%3 -B %2 -P I -F %4
GOTO ENDER
:JUP
JMODEM R%3 %4
JMODEM R%3 %5
JMODEM R%3 %6
GOTO ENDER
:LUP
LYNX R C:\TEST\ /%2 /%3 /D /H
GOTO ENDER
:QUP
DSZ port %3 rx -g %4
GOTO ENDER
:XUP
DSZ port %3 rc %4
GOTO ENDER
:KUP
DSZ port %3 rc %4
GOTO ENDER
:YUP
DSZ port %3 rb -k
GOTO ENDER
:GUP
DSZ port %3 rb -g
GOTO ENDER
:ZUP
DSZ port %3 rz
GOTO ENDER
:WUP
WXFER -c speed %2 port %3 -r %4
GOTO ENDER
:PUP
PCKERMIT -L COM%3 -B %2 -M 31 -P N -R -C
GOTO ENDER
:SUP
CLINK R /P%3 /B%2 /O
GOTO ENDER
:ENDER
* DOWNLOAD.BAT *
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: %1 = FILE TRANSFER PROTOCOL ::
:: %2 = BAUD RATE ::
:: %3 = COMM PORT << LEGEND >> ::
:: %4 = FILE #1 ::
:: %5 = FILE #2 ::
:: %6 = FILE #3 ::
:: ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ECHO OFF
IF %1 == IMODEM GOTO IUP
IF %1 == JMODEM GOTO JUP
IF %1 == LYNX GOTO LUP
IF %1 == QMODEM-G GOTO QUP
IF %1 == XMODEM GOTO XUP
IF %1 == XMODEM-K GOTO KUP
IF %1 == YMODEM GOTO YUP
IF %1 == YMODEM-G GOTO GUP
IF %1 == ZMODEM GOTO ZUP
IF %1 == WXMODEM GOTO WUP
IF %1 == PCKERMIT GOTO PUP
IF %1 == SEALINK GOTO SUP
:IUP
QMXFER -C -S -L COM%3 -B %2 -P I -F %4
GOTO ENDER
:JUP
JMODEM.COM S%3 %4
JMODEM.COM S%3 %5
JMODEM.COM S%3 %5
GOTO ENDER
:LUP
LYNX S /H /%2 /%3 %4 %5 %6
GOTO ENDER
:QUP
DSZ port %3 sx %4
GOTO ENDER
:XUP
DSZ port %3 sx %4
GOTO ENDER
:KUP
DSZ port %3 sx -k %4
GOTO ENDER
:YUP
DSZ port %3 sb -k %4 %5 %6
GOTO ENDER
:GUP
DSZ port %3 sb %4 %5 %6
GOTO ENDER
:ZUP
DSZ port %3 sz %4 %5 %6
GOTO ENDER
:WUP
WXFER -c speed %2 port %3 -s %4
GOTO ENDER
:PUP
PCKERMIT -L COM%3 -B %2 -M 31 -P N -S %4 %5 %6 -C
GOTO ENDER
:SUP
CLINK T %4 %5 %6 /P%3 /B%2 /O
:ENDER
******************************************************************************
I hope that this information will help you in the smooth set-up and operation
of your BBS.