home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / QF_110.ZIP / SPAWNBBS.CTL < prev    next >
Text File  |  1994-08-05  |  2KB  |  72 lines

  1. @Echo off
  2.  
  3. Rem *** SPAWNBBS.BAT batch file for node @QFRONTNODE ***
  4.  
  5. @PCBDRIVE
  6. CD @PCBPATH
  7.  
  8. SET DSZLOG=PCBDSZ.LOG
  9.  
  10. If Exist remote.bat rename remote.bat remote.sys
  11. If Exist door.bat del door.bat
  12. If Exist endpcb del endpcb
  13.  
  14. Rem *** NOTES ON LOADING PCBOARD WITH QFRONT ***
  15.  
  16. Rem In the default QFront configuration, %1 is the baud rate and
  17. Rem %2 is YES or NO depending on whether an error-correching
  18. Rem connection has been established.
  19.  
  20. Rem If the sysop presses 'L' from the QFront call waiting string,
  21. Rem QFront passes the string 'LOCAL' as %1 and PCBoard gets loaded
  22. Rem in local mode.
  23.  
  24. Rem If returing from a door, 'RETURN' gets passed as %1, and PCBoard
  25. Rem gets reloaded normally.  Your BOARD.BAT (used to reload PCBoard after
  26. Rem a door is done) file will pass the 'RETURN' parameter automatically.
  27.  
  28. If %1==RETURN Goto ReturnDoor
  29. If %1==LOCAL Goto LoadLocal
  30. If %2==YES @PCBEXENAME /C:%1 /ERR /EVENT:%MINUTES% %3 %4
  31. If %2==NO @PCBEXENAME /C:%1 /EVENT:%MINUTES% %3 %4
  32. Goto Top
  33.  
  34. :ReturnDoor
  35. @PCBEXENAME /EVENT:%MINUTES%
  36. Goto Top
  37.  
  38. :LoadLocal
  39. @PCBEXENAME /LOCALON /KEY:@QFLOGON.KEY /EVENT:%MINUTES%
  40. Goto Top
  41.  
  42. :Top
  43. If Exist remote.bat remote
  44. If Exist door.bat door PCB
  45. If Exist endpcb goto end
  46.  
  47. Goto ReturnDoor
  48.  
  49. Rem *** NOTES ON OPENING DOORS ***
  50.  
  51. Rem Opening doors with QFront installed is as easy as it is without it
  52. Rem installed.  Your BOARD.BAT file should be similar to this:
  53.  
  54. Rem @PCBDRIVE
  55. Rem CD @PCBPATH
  56. Rem SPAWNBBS.BAT RETURN
  57.  
  58. Rem Since the BOARD.BAT file is no longer used when you have QFront
  59. Rem installed (STARTER.BAT replaces it), you can modify it to say the
  60. Rem three lines just shown.  All this batch file does is loads
  61. Rem SPAWNBBS.BAT (the file you're reading now) and will pass 'RETURN'
  62. Rem as a command line parameter.  Then SPAWNBBS.BAT will see that
  63. Rem %1=='RETURN' and will reload PCBoard normally.
  64. Rem Doing all this will mean that all of your current door batch files will
  65. Rem not need to be changed.
  66.  
  67. Rem The ':End' label will reload the STARTER.BAT file, in effect resetting
  68. Rem the system by loading QFront and waiting for the next call.
  69.  
  70. :End
  71. Starter
  72.