home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
FBRAIN.ZIP
/
FBRAIN.DOC
< prev
next >
Wrap
Text File
|
1993-03-15
|
10KB
|
234 lines
FILE BRAIN
(C) Copyright 1993 by Stanley Sheff
Support BBS: The Brainex System
(310) 275-2344
(310) 273-5234
File Brain is a replacement for the normal file testing routine used in
your BBS's upload routine. Your BBS should be able to generate a data
file such as DOOR.SYS, and run a batch file after an upload. You will
need at least 400K of RAM and DOS 3.3 or higher.
This door requires the use of the Brainex Door Manager system.
if you have not installed the door manager, please do so before you
attempt to use this door.
GAP BBS uses UPCHECK.BAT. Also, be sure to include a LOGON.BAT file
in your default (GAP) directory to generate a log on DOOR.SYS file.
When GAP sees this, it generates a DOOR.SYS file. There need not be
anything in this file other than @ECHO OFF.
If your BBS does not create a DOOR.SYS or other door data file
when accepting an upload, you can use the DETECT option. File Brain
will read the current comport settings and attempt to use them.
You will need to experiment to see if the DETECT command will work
on your system.
File Brain processes files with extenders of ZIP, LZH, ARJ, GIF, and ARC.
File Brain will do the following after an upload:
o Check for Duplicate CDROM files (If you use Rombrain!)
o Test for CRC errors in the .ZIP file.
o Test for imbedded .ZIP files and if found, CRC check those too.
o Test for imbedded .TD0 (Teledisk) files and if found, test with TDCHECK.
o Virus SCAN imbedded EXE and COM files, using SCAN.EXE from McAffey.
o Remove all .ZIP comments from the file.
o Replace .ZIP comments with your own. (Optional)
o Delete unwanted BBS ads and/or other unwanted ZIP members as you define.
o Test .GIF files for validity if you accept that file format (Optional)
o Reject programs older than a date (year) which you specify.
o Extract FILE_ID.DIZ if present, format to 45 or 70(GAP) cols., 10 lines,
and add newest file date if FILE_ID.DIZ is under 10 lines in length.
o Extract DESC.SDI if present
o Use a RAMDISK for temporary files, increasing speed (Optional)
Included is a file called UTILITY.ZIP, with the following files:
PKZIP.EXE - Phil Katz archive create program (version 2.04G)
PKUNZIP.EXE - Phil Katz archive extract program (version 2.04G)
PKPAK.EXE - Archive Program from PKWARE
PKUNPAK.EXE - Archive Program from PKWARE
LHA.EXE - Archive Program by Haruyasu Yoshizaki
ARJ.EXE - Archive Program by Robert K. Jung
TDCHECK.EXE - .TD0 (Teledisk) checker from SyDex (any version)
SCAN.EXE - McAffey's virus detection program (any version)
or a Virus Checker of your choice.
RECOM.EXE - Mike Loewen's ZIP file comment remover/date stamper.
GIFTEST - Dave Navarro's .GIF file tester
TESTPRM.BAT - Displays passed BBS file parameters for testing.
These files must be in your PATH, and may require registration for
continued use. PLEASE SUPPORT SHAREWARE AND DO SO!
File Brain Files
----------------
FBRAIN.EXE <------------------ File Brain Program
FBRAIN.DOC <------------------ Sysop's Information
REGISTER.DOC <------------------ Registration information
BBSADS <------------------ Unwanted BBS Ad Files (Optional)
NOTEST <------------------ Don't test these file extenders
UTILITY.ZIP <------------------ Utilities need by File Brain
FILE_ID.DIZ <------------------ Brief File Description
Bad uploads will be reported to a file named ERRORS.RPT located
in your designated "JUNK" directory.
All of these files should be in this ZIP, if they are not, don't
take a chance! Call The Brainex System and get a good copy or view the
file on a few local boards to see if you can find a complete copy.
The setup of File Brain is simple, all you need to do is unzip
FBRAIN.ZIP into a temporary directory, then type SETUP.
The File Brain files will be copied to your BRAINEX directory.
The BRAINSET program will run, and you can answer the File Brain
set up questions.
Be sure to create a directory for virus infected files.
File Brain returns a DOS exit errorlevel of 1 if the program detects
a bad upload. Good uploads will return error level 0.
To use File Brain, you will need to edit or create a batch file
that is run right after an upload. Such files are UPCHECK.BAT for GAP,
and PCBTEST.BAT for PCBoard. The basic command format is:
FBRAIN NODE=[node number] FILE=[drive\path\filename]
FILENAME PARAMETER
------------------
Use the FILE= command to tell File Brain the name of the file to check.
FBRAIN FILE=%1
%1 is the variable of the upload's DRIVE\PATH\FILENAME.EXT passed to
the batch file by the BBS after the upload. If you are unsure if your BBS
passes the complete filename to File Brain, you can use the included
TESTPRM.BAT file. Run this instead of your normal upload check batch
file.
GAP BBS:
The name of the complete drive\path\filename of the file being tested will
passed as a parameter to the batch file as %1.
You can add a duplicate file check program, such as one that checks
files by CRC values. Just run SETUP, then enter the name of the batch
file to the last option "DUPLICATE CHECKER Program." If you do not
use this type of program, just enter NONE. In the following example,
we have used the name CRC for the batch file.
REM EXAMPLE: CRC.BAT
REM CHANGE TO TESTER'S DRIVE
D:
REM CHANGE TO TESTER'S DIRECTORY
CD \CRCTEST
REM RUN THE TESTER WITH %1 AS THE PASSED DRIVE\PATH\FILENAME.EXT OF TEST FILE
CRCTEST %1
For multinode systems, name the batch files CRC1.BAT for node 1,
CRC2.BAT for node 2, etc. Place the batch files in the BRAINEX\FBRAIN
directory. When setting up File Brain, you will be asked for the name of
the duplicate checker batch file. Give the name without the node number
and .BAT extension, in this case CRC. File Brain will add the node
number and .BAT extension.
ROMBRAIN
========
If you use the Brainex Door ROMBRAIN, you can also check your CDROM
filebase for dupes. When using the door manager to sett up the door,
you will be asked to indicate the cdrom numbers to check. Enter the
numbers separated by a comma, or 0 for no CDROM checks.
To remove unwanted BBS ads, create a text file named BBSADS, then put
a file name for each ad on a separate line. If this file is not present,
file Brain will not try to remove BBS ads.
Edit the file NOTEST to add extenders of files you don't want tested.
Once you have used BRAINSET to install the door, you can use a batch
file to run the door. A batch file for a GAP BBS might look like this:
ECHO OFF
CD \BRAINEX
FBRAIN FILE=%1
%1 is the variable of the upload's DRIVE\PATH\FILENAME.EXT passed to
the batch file by the BBS after the upload. On GAP BBS the batch file
is named UPCHECK.BAT.
For multinode operation, add the node number to the command line:
FBRAIN NODE=1 FILE=%1
or
FBRAIN NODE=2 FILE=%1
etc.
PCBOARD BBS
===========
To read the PCBOARD.SYS file, add the following command after FBRAIN:
DATA=PCBOARD.SYS
To update file description with FILE_ID.DIZ add:
UPDESC=%3
Example PCBTEST.BAT file:
@ECHO OFF
FBRAIN DATA=PCBOARD.SYS NODE=1 FILE=%1 UPDESC=%3
LOCAL MODE
==========
You can run File Brain from the DOS command line or a batch file
without a drop file (door.sys, dorinfo1.def, etc.) by using the
LOCAL command. Example:
FBRAIN LOCAL FILE=C:\TEST\TESTFILE.ZIP
DETECT MODE
-----------
Add DETECT to the command line, and File Brain will use the current
comport settings. Example:
FBRAIN FILE=%1 DETECT
This is useful for BBSes that do not create a door data file during
an upload.
-*- -*- -*-
This version of File Brain is a DEMO. It is not crippled in any way,
but will only display your BBS NAME when registered. This door is
released "As Is" and there is *NO* warranty or guarantee that it will
work for you and not cause any problems. You have chosen to use this door,
YOU are responsible for any unfortunate problems that may develop from
its use or misuse. I will gladly listen to any suggestions or problems
you may have, and I will do my best to fix whatever needs to be fixed.
I can not be held responsible for any problems you may have, whether
directly or indirectly due to the use of the door.
Please read REGISTER.DOC for information on how you can register
your copy of File Brain.
For complete support, contact PROFESSOR BRAINEX on The Brainex System.
Your questions will be quickly and cheerfully answered!
Have Fun!
Stanley Sheff
The Brainex System
310-275-2344 HST
310-273-5234 V.32BIS/V,42BIS