home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / BFE2000P.ZIP / BFE2000P.EXE / SAMPLES / FD / FDSTART.BAT < prev   
Encoding:
DOS Batch File  |  1993-09-10  |  2.9 KB  |  88 lines

  1. @echo off
  2. REM **************************************************************
  3. REM *      Sample Batch File for running FrontDoor with BFE      *
  4. REM *      ------------------------------------------------      *
  5. REM * BFE was designed to run from a Fidonet mailer, thus BFE    *
  6. REM * performs flawlessly under mailers such as Frontdoor.  It   *
  7. REM * also works great under other mailers such as BinkleyTerm   *
  8. REM * and Portal of Power.                                       *
  9. REM *                                                            *
  10. REM * I will now describe the most efficient method of running   *
  11. REM * the two together.  First off, in FDSETUP, under Mailer     *
  12. REM * and Errorlevels, set *all* of the errorlevels for the      *
  13. REM * various baud rates to the same value!  In this example,    *
  14. REM * we will use 49 (lucky number).  Also enable the option at  *
  15. REM * the bottom of the menu to "Create BAT.file".  This will    *
  16. REM * force FD to generate a bat file called DOBBSx.BAT (x is    *
  17. REM * the node number, or 0 for single node systems).  This file *
  18. REM * will look something like:                                  *
  19. REM *                                                            *
  20. REM *   EXEBBS 9600 1 516 ...etc                                 *
  21. REM *                                                            *
  22. REM * The first number (9600) is the baud rate, the second       *
  23. REM * number (1) is the port number, the third is the time until *
  24. REM * the next FD event.  There may be additional values after   *
  25. REM * these, depending on your version of FD.                    *
  26. REM *                                                            *
  27. REM * Below is a sample FDSTART.BAT file.  Note how we trap the  *
  28. REM * errorlevel 49 from above, and call the DOBBS0.BAT file.    *
  29. REM * See the sample EXEBBS.BAT file to how BFE is started.      *
  30. REM *                                                            *
  31. REM **************************************************************
  32.  
  33. REM Set the FrontDoor environment variable (just to make sure!)
  34. set FD=C:\fd
  35.  
  36. REM Change to the FD directory
  37. C:
  38. cd\fd
  39.  
  40. REM Main Processing Loop for the Mailer
  41. :Loop
  42.  
  43. REM Set the Fossil driver before we go in, just to make sure its ok
  44. XU SET:2:19200 LOCK:2:19200 FIFO:10
  45.  
  46. REM Run FrontDoor!
  47. fd
  48. If Errorlevel 255 goto End
  49. If Errorlevel 150 goto packmail
  50. If Errorlevel 99 goto Maint
  51. REM .
  52. REM .
  53. If Errorlevel 49 goto bbscall
  54. REM .
  55. REM .
  56. If Errorlevel 5 goto End
  57. If Errorlevel 4 goto End
  58. If Errorlevel 3 goto End
  59. If Errorlevel 2 goto End
  60. If Errorlevel 1 goto End
  61.  
  62. goto Loop
  63.  
  64. :bbscall
  65.  C:
  66.  cd c:\fd
  67.  dobbs0.bat
  68.  goto Loop
  69.  
  70. :Maint
  71.  M:
  72.  cd C:\max
  73.  call sysmaint
  74.  cd C:\fd
  75.  goto Loop
  76.  
  77. REM Here is where your echomail/netmail is normally processed
  78.  
  79. :Packmail
  80.  C:
  81.  cd C:\max
  82.  squish in out squash -fC:\max\echotoss.log -snormal
  83.  goto Loop
  84.  
  85. :End
  86.  cd\fd
  87.  XU PORT:2:OFF
  88.