[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                           24.7 EXEBBS.BAT

     This is the file you have to create. It should handle everything
     required for the BBS software you are running, including
     exporting mail after users have logged off, etc. The last
     statement of your EXEBBS.BAT file should be the name of the big
     (main) batch file. Here is a sample of an EXEBBS.BAT file:

         coolBBS -b%1%4 -p%2 -t%3

         if errorlevel 200 goto newmail
         if errorlevel 40  goto fatal

         run

         :newmail
         cls
         @echo User entered echomail, let's send it!
         tosscan scan
         run

         :fatal
         cls
         @echo A fatal error has occurred in coolBBS

         Since DOBBS.BAT calls EXEBBS.BAT with various information, it
         can be used to pass parameters to the BBS software. The
         result of the above EXEBBS.BAT file would expand to:

             coolBBS -b9600/ARQ -p1 -t120

         If a BBS call came in at 9600, the COM port is one, the
         number of minutes till the next non-user event is 120 and the
         optional (%4) string contained /ARQ.

         The text RUN, refers to the original (main) batch file, in
         which we bring the Mailer back up again. When the BBS
         software (coolBBS in the above examples) terminates,
         EXEBBS.BAT will trap two errorlevels and then invoke
         RUN(.BAT) again.


This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson