home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1996 December / CD_shareware_12-96.iso / DOS / Pub_elec / TGFAQ43.ZIP / FAQ2.TXT < prev    next >
Encoding:
Text File  |  1996-07-24  |  3.4 KB  |  124 lines

  1. Hello all!
  2.  
  3. FD has two methods of passing the baud rate.  This FAQ shows the DOBBS/EXEBBS
  4. method.  There is another FAQ which shows the 'one bat file, errorlevel
  5. method' which many new sysops find simpler to manage.  The essential
  6. difference between the two is having one long bat file, or several short ones.
  7. There is also some added capability in the DOBBS/EXEBBS method as it allows
  8. you to pass the time of the next FD event, and /ARQ connection information.
  9. Suit yourself to what you like best.
  10.  
  11.       1.  Go into FD config, and make sure you have assigned a number to
  12.       each baud rate connecting to your system.  In this example, we used
  13.       errorlevel 200 for all connection speeds and turned on the 'create bat
  14.       file option' in FD.
  15.  
  16.       2.  Add the following to your 'frodo.bat' file or just replace your
  17.       old one with this example then add in what you need for your setup.
  18.  
  19.  
  20. ---- begin FRODO.BAT-----
  21.  
  22. @Echo off
  23. c:
  24. cd \fd
  25. :Start
  26.  
  27.    
  28.    Cd\fd
  29. fd
  30.    If ERRORLEVEL 253 Goto Mail_Out
  31.    If ERRORLEVEL 252 Goto Make_Node
  32.    If ERRORLEVEL 209 Goto Mail_Test  ;Function Key activated
  33.    If ERRORLEVEL 201 Goto FB100
  34.    If ERRORLEVEL 200 Goto Connect
  35.  
  36. Goto end
  37.  
  38. :Mail_Out     ;Gecho 1.11+ specific, adapt as needed!
  39. c:
  40. cd c:\fd
  41. AT H1 1
  42. DEL c:\tg\tgmscan.now
  43. GEcho toss -NOMGR
  44. GEcho scan
  45. GEcho MGR
  46. MBUTIL pack -renumber -link -purge
  47. Goto Start
  48.  
  49. :Make_Node
  50. If Exist c:\fd\file\nodediff.* Goto Node_Here
  51. Goto Start
  52.  
  53. :Node_Here
  54. Copy c:\fd\file\nodediff.* c:\fd\nodelist
  55. cd c:\fd\nodelist
  56. editnl 
  57. cd c:\fd
  58. fdnc /f
  59. Goto Start
  60.  
  61. :FB100        ;external event in FD to do 'stuff' as needed
  62. CD \tg\FFS    ;for online games and other items needed nightly
  63. FISHMANT
  64. CD \FD
  65. mbutil pack -renumber -link -purge
  66. cd \tg
  67. INDEX BUILD ALL
  68. INDEX SORT ALL
  69. cd \tg\goc
  70. maint
  71. cd \fd
  72. call tickout.bat      ; processes inbound filebone
  73. Goto Start
  74.  
  75. :Connect       ;here begins the connection sequence
  76. dobbs.bat
  77.  
  78. :Mail_Test
  79. IF EXIST C:\TG\ECHOMAIL.TG? GOTO Mail_Out
  80. Goto Start
  81.  
  82. :End          
  83. -----end FRODO.BAT-------
  84.  
  85. DOBBS.BAT is created by FD each BBS call, and it then activates EXEBBS.BAT
  86. which you design.
  87.  
  88. EXEBBS.BAT (Remember that this file is activated by DOBBS.BAT):
  89.  
  90. ----begin EXEBBS.BAT--------------
  91.  
  92. C:
  93. CD \TG
  94. TELEGARD -B%1 -X%3 -N%4 -C%5 -Q
  95. If Not Exist c:\tg\ECHOMAIL.TG? GoTo End
  96. Del c:\tg\ECHOMAIL.TG?
  97. cd \fd
  98. Gecho Toss
  99. Gecho Scan
  100. :END
  101. Frodo                         ; your FD batch file
  102.  
  103. This is a very basic batch file to startup TG with the DOBBS process. Make
  104. note that if you use another filename for your 'FD.BAT' other than 'FRODO.BAT'
  105. you will need to change it here too!  If you dont, your BBS will land in
  106. 'zululand' because it wont know what to do after a caller exits!
  107.  
  108. (Note:  %1=baud, %2=port, %3=time till next event, %4=node if multinode, 
  109. %5=other modem connect info such as if it is an ARQ connection)
  110.  
  111. Informational assistance provided by Kevin Watkins.
  112.  
  113. Note, this version shows also how to scan for mail left by a caller and
  114. packing if they left any outbound mail by checking for the existance of a
  115. ECHOMAIL.TG? file.  This is optional and the mail_test routine shows for local
  116. sysop mail.  Note that the echomail.tg? means in place of the ? to use J for
  117. Jam or S for Squish.
  118.  
  119.  
  120. End part 2.
  121.                                   xxcarol
  122.                                   TG Beta, Norfolk
  123.  
  124.