home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SETTING UP ".BAT" FILES FOR RBBS-PC 13-1
-
-
- 13. SETTING UP ".BAT" FILES FOR RBBS-PC
- ---------------------------------------
- In order for you to take advantage of all RBBS-PC functions, you must run
- RBBS-PC via a .BAT file. When processing events such as DOORS, daily
- maintenance and Remote DOS access, RBBS-PC exits to DOS, and expects the
- .BAT file that invoked it to handle these events.
-
- 13.1 RBBS-PC's Startup Batch File
- ---------------------------------
- The batch file (RBBS.BAT) that comes with RBBS-PC is capable of handling
- these events, but in order to make full use of it, you must understand the
- commands in it. RBBS-PC stores the name of this batch file in CONFIG
- parameter 104. This example assumes you have installed RBBS-PC in the
- directory C:\RBBS. Each line in the .BAT file is described below:
-
- COMMAND DESCRIPTION
- ECHO OFF This tells DOS not to display each command as it executes.
-
- CLS This clears the screen.
-
- C: This makes sure that when you start RBBS-PC, the default
- drive is the one where RBBS-PC resides.
-
- IF %node%. == . SET node=1
- You should remove this line from RBBS.BAT, and place it in
- the AUTOEXEC.BAT for each node. Of course, change the
- number to correspond to the node number in each
- AUTOEXEC.BAT. This function makes use of the DOS
- "environment variable" concept. From now on, when you see
- %node%, substitute the node number.
-
- :START This is a "branch label" which allows RBBS.BAT to recycle
- continuously.
-
- CD C:\RBBS This line makes sure that when you start RBBS-PC, the
- default subdirectory is the one where RBBS-PC resides.
-
- IF EXIST C:\RBBS\NODE%node%\RBBS%node%TM.DEF ...
- DEL C:\RBBS\NODE%node%\RBBS%node%TM.DEF
- This command checks for the DAILY EVENT signal file, and
- deletes it. This is a "cleanup" command, which makes sure
- there are no old signal files on the disk.
-
- IF EXIST C:\RBBS\NODE%node%\RBBS%node%F1.DEF ...
- DEL C:\RBBS\NODE%node%\RBBS%node%F1.DEF
- This command checks for the SysOp EXIT signal file, and
- deletes it. This is a another "cleanup" command.
-
- IF EXIST C:\RBBS\NODE%node%\RCTTY.BAT ...
- DEL C:\RBBS\NODE%node%\RCTTY.BAT
- This command checks for the DOOR signal file, and deletes
- it. This is a another "cleanup" command. The path and
- filename of this signal file can be set with CONFIG
- parameter 103.
-
- RBBS-PC %1 This command actually runs RBBS-PC. The %1 allows you to
- specify options when you use the RBBS.BAT file. For
- example, if you enter "RBBS LOCAL", the "LOCAL" is passed to
- RBBS-PC, so you can run in local mode.
-
-
-
- RBBS-PC 17.3A TECHNICAL REFERENCE MANUAL 13-2
-
-
- IF EXIST C:\RBBS\NODE%node%\RBBS%node%F1.DEF GOTO EXIT
- This command checks for the SysOp EXIT signal file, and if
- found, exits the .BAT file. The SysOp EXIT signal file is
- created whenever the SysOp presses F1 at the local console.
-
- IF EXIST C:\RBBS\NODE%node%\RBBS%node%TM.DEF RBBSTIME.BAT
- This command checks for the DAILY EVENT signal file, and if
- found, runs the .BAT file RBBSTIME.BAT. The daily event can
- contain any maintenance you wish to perform on a daily
- basis. RBBS-PC will create the DAILY EVENT signal file at a
- the time specified in CONFIG parameter 261.
-
- IF EXIST C:\RBBS\NODE%node%\RCTTY.BAT C:\RBBS\NODE%node%\RCTTY.BAT
- This command checks for the DOOR signal file, and if found,
- executes it. The DOOR signal file is created when a caller
- opens a DOOR, or the SysOp requests remote DOS operation.
-
- GOTO START This command restarts RBBS-PC during a "recycle." The only
- way to stop RBBS-PC completely is to press F1.
-
- :EXIT This is a "branch label." When RBBS.BAT finds the SysOp
- EXIT signal file, it branches here, which ends RBBS-PC and
- returns to DOS.
-
- For multi-node use, the command "RBBS-PC %1" must be changed to indicate to
- RBBS-PC that you are running multiple nodes. The revised command would be:
-
- RBBS-PC %node% RBBS%node%PC.DEF %1
-
- 13.2 The Daily Event .BAT file
- ------------------------------
- CONFIG option 261 allows you to specify a time each day that RBBS-PC will
- exit for daily maintenance. The supplied RBBS.BAT file can detect this
- event (via the RBBS?TM.DEF signal file) and process a .BAT file. The
- contents of the daily event file can contain whatever the SysOp wishes:
- Tape backup commands, message packing, file verification or virus checking.
- Just make sure that the daily event file re-invokes the RBBS.BAT file when
- processing is complete, and RBBS-PC will resume after the maintenance.
-
-