home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / bgfax147.zip / FBBS.BAT < prev    next >
DOS Batch File  |  1995-05-02  |  702b  |  25 lines

  1. @echo off
  2. rem ***** This is an example batch file for frontend mode operation
  3. set bgfax=c:\bgfax
  4. c:
  5. cd %bgfax%
  6. bgfax /host
  7. if errorlevel 120 maint1.bat
  8. if errorlevel 4 goto faxrcvd
  9. if errorlevel 3 goto datacall
  10. if errorlevel 2 goto datacall
  11. if errorlevel 1 fbbs.bat
  12. goto end
  13. :faxrcvd
  14.   rem ***** You can auto-print every fax, see docs for info on EXEPRINT.BAT
  15.   call %bgfax%\doprint.bat
  16.   del %bgfax%\doprint.bat
  17.   fbbs.bat
  18. :datacall
  19.   rem ***** Errorlevel 2 = Data Call,  Errorlevel 3 = Local Logon
  20.   rem ***** The following line executes the DOBBS.BAT file created by BGFAX
  21.   rem ***** which then runs EXEBBS.BAT which should load your BBS software.
  22.   %bgfax%\dobbs.bat
  23. :end
  24.  
  25.