home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bfx200.zip / BBS.BAT next >
DOS Batch File  |  1992-12-02  |  1KB  |  58 lines

  1. @ECHO OFF
  2. REM Everything returns here except Alt-X
  3. REM or when [T]erminate is selected from the menu
  4. :loop
  5.   f:
  6.   cd \sf
  7.   cls
  8.   bfx
  9. REM Event E0
  10.   if errorlevel 70 goto event
  11. REM Configurable Item C2
  12.   if errorlevel 50 goto dosfax
  13. REM Configurable Item C1
  14.   if errorlevel 40 goto comm
  15. REM Fax Connection
  16.   if errorlevel 30 goto fax
  17. REM Data Connection
  18.   if errorlevel 20 goto spit
  19. REM Local Logon Menu Selection
  20.   if errorlevel 10 goto spitl
  21. REM Terminate Menu Selection or
  22. REM an Alt-X keypress
  23.   if errorlevel  0 goto end
  24. REM My BBS maintenance event
  25. :event
  26.   call fileupd
  27.   goto loop
  28. REM Start up RCVFAX
  29. :fax
  30. REM This is the command line for the RCVFAX in ZFAX 2.1
  31.   rcvfax 2 /p:1 /w:f:\sf\fax
  32.   goto loop
  33. REM Start up SPITFIRE
  34. :spit
  35.   call bbsexe
  36.   sfchkup
  37.   goto loop
  38. REM Start up my COMM program
  39. REM If you are executing a BATch file use
  40. REM the CALL keyword so execution returns here.
  41. :comm
  42.   e:
  43.   cd \gt
  44.   call gt
  45.   goto loop
  46. REM Start up DOSFAX
  47. :dosfax
  48.   e:
  49.   cd \dosfax
  50.   dosfax
  51.   goto loop
  52. REM Start SPITFIRE in LOCAL mode
  53. :spitl
  54.   spitfire 0
  55.   goto loop
  56. REM Alt-X pressed or [T]erminate selected from menu
  57. :end
  58.