home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
WW4SHARE
/
WWIV430.ZIP
/
WWIVBAT.SAM
< prev
next >
Wrap
Text File
|
2000-03-06
|
3KB
|
75 lines
@ECHO OFF
REM ***** Sample batch file for running the BBS on Instance 1:
REM ***** First, set the environment variable for the instance:
SET WWIV_INSTANCE=1
REM ***** Change drive and directory to the location of the BBS
d:
cd \bbs
REM ***** Looping the BBS to include a reload of the fossil driver is
REM ***** recommended after every user.
:LOOP
REM ***** Load the fossil driver in the begining of the loop.
REM ***** X00 or BNU work fine in DOS or a DOS box.
REM ***** WinFossil or ADF will work well for Windows.
REM ***** X00 commandlines are used for an example. You will have
REM ***** to adjust these for your system.
REM ***** Setting of TX/RX buffers is NOT recommended for any fossil
REM ***** driver. Allow the fossil to set them to the defaults.
REM
REM X00.EXE E B,1,115200
REM │ │ │ │ │
REM │ │ │ │ └─── rate of your com port
REM │ │ │ └─────── com port -1 COM1=0 COM2=1 ect...
REM │ │ └───────── baud settings
REM │ └─────────── Eliminates the X00 info splash
REM └──────────────── X00 of course. Must be in the BBS dir or path
REM
REM Next call XU.EXE, the runtime interface for X00. It has to be
REM called twice, once to turn the port on, again to lock the port.
REM
REM XU.EXE PORT:<x>:<ON | OFF>
REM │ │ │ │
REM │ │ │ └───── turns port ON or OFF
REM │ │ └──────────── com port -1 COM1=0 COM2=1 ect...
REM │ └───────────────── addresses command to the port
REM ├─────────────────────── interface program for X00 while active
REM │ ┌───────────────── locks baud rate of port
REM │ │ ┌──────────── com port -1 COM1=0 COM2=1 ect...
REM │ │ │ ┌─────── baud rate to lock port at
REM │ │ │ │ ┌─ sets parity on port
REM │ │ │ │ │
REM XU.EXE LOCK:<x>:<baud>:8N1
X00.EXE E B,1,115200
XU.EXE PORT:1:ON
XU.EXE LOCK:1:115200:8N1
REM ***** Load the BBS -o = Exit after one user
REM ***** -n0 = Error level 0 on normal exit
REM ***** -a2 = Error level 2 on abnormal exit
REM ***** %x = Allows passing of other parameters on the
REM ***** commandline ( i.e. WWIV -m )
bbs.exe -o -n0 -a3 %1 %2 %3
REM ***** If the BBS exits abnormally goto the specified label.
if errorlevel 3 goto ABNORMALEND
REM ***** Errorlevel 2 is a normal quit or escape from the BBS
if errorlevel 2 goto END
REM ***** Otherwise, turn of and unload the fossil driver
XU PORT:1:OFF
X00.EXE
REM ***** And go back to the top of the loop to reload.
goto LOOP
REM ***** Actions to be performed if the BBS exits abnormally
:ABNORMALEND
REM ***** Nothing goes below this label
:END