home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / BFE2000P.ZIP / BFE2000P.EXE / SAMPLES / FD / EXEBBS.BAT next >
Encoding:
DOS Batch File  |  1993-09-10  |  1.1 KB  |  50 lines

  1. @Echo off
  2.  
  3. REM Sample EXEBBS.BAT file for running BFE under FrontDoor
  4.  
  5. REM Hop to the BFE directory
  6. c:
  7. cd\fd\bfe
  8.  
  9. REM Call BFE, passing the values from the DOBBS0.BAT (baud, speed, etc)
  10. bfe -s%1 -p%2 -cMAIN.CTL -n1
  11.  
  12. REM Another example of calling BFE, is to lock the port at all times, with
  13. REM a constant speed (i.e. 19200, 38400, etc)
  14. REM bfe -s19200 -p%2 -cMAIN.CTL -n1
  15.  
  16. REM Another example, is to lock the port based upon the passed speed
  17. REM bfe -s%1 -p%2 -cMAIN.CTL -n1 -l
  18.  
  19. REM Let's check our BFE errorlevels for the various BBS systems
  20. if errorlevel 99 goto bail
  21. if errorlevel 51 goto Caldwell
  22. if errorlevel 50 goto Cairo
  23. if errorlevel 1  goto bail
  24.  
  25. echo Fell through!
  26.  
  27. cd\fd
  28. fdstart.bat
  29.  
  30. REM Here comes Maximus #1!
  31. :Cairo
  32. cd\max
  33. Max -b%1 -p%2 -t%3 -n1
  34. REM You may have to check additional errorlevels from your BBS here, esp.
  35. REM if you run door games that you have to exit on an errorlevel to run.
  36. goto bail
  37.  
  38. REM Here comes Maximus #2!
  39. :Caldwell
  40. cd\max
  41. cald1.bat %1 %2 %3 %4
  42.  
  43. :bail
  44. c:
  45. cd\fd
  46.  
  47. echo mailer!
  48.  
  49. fdstart.bat
  50.