FD225/SW or earlier versions
DRAFT VERSION                                            Date: 26JUN98

Hello all!

FD has two methods of passing the baud rate.  This FAQ shows the DOBBS/EXEBBS
method.  This method is required for FD225/SW users.  There is another FAQ
which shows the 'one bat file, errorlevel method' which may be used with
FD2.12/SW or below.  The essential difference for those using FD2.12/SW and
below is in having one long bat file, or several short ones.

There is also some added capability in the DOBBS/EXEBBS method as it allows
you to pass the time of the next FD event, and /ARQ connection information.
Suit yourself to what you like best if using FD2.12/SW and below.

      1.  Go into FD config, and make sure you have assigned a number to
      each baud rate connecting to your system.  In this example, we used
      errorlevel 200 for all connection speeds and turned on the 'create bat
      file option' in FD.

      2.  Add the following to your 'frodo.bat' file or just replace your
      old one with this example then add in what you need for your setup.


---- begin FRODO.BAT-----

@Echo off
c:
cd \fd
:Start

   
   Cd\fd
fd
   If ERRORLEVEL 253 Goto Mail_Out
   If ERRORLEVEL 252 Goto Make_Node
   If ERRORLEVEL 209 Goto Mail_Test  ;Function Key activated
   If ERRORLEVEL 201 Goto FB100
   If ERRORLEVEL 200 Goto Connect

Goto end

:Mail_Out     ;Gecho 1.11+ specific, adapt as needed!
c:
cd c:\fd
AT H1 1
DEL c:\tg\tgmscan.now
GEcho toss -NOMGR
GEcho scan
GEcho MGR
MBUTIL pack -renumber -link -purge
Goto Start

:Make_Node
If Exist c:\fd\file\nodediff.* Goto Node_Here
Goto Start

:Node_Here
Copy c:\fd\file\nodediff.* c:\fd\nodelist
cd c:\fd\nodelist
editnl 
cd c:\fd
fdnc /f
Goto Start

:FB100        ;external event in FD to do 'stuff' as needed
CD \tg\FFS    ;for online games and other items needed nightly
FISHMANT
CD \FD
mbutil pack -renumber -link -purge
cd \tg
INDEX BUILD ALL
INDEX SORT ALL
cd \tg\goc
maint
cd \fd
call tickout.bat      ; processes inbound filebone
Goto Start

:Connect       ;here begins the connection sequence
call dobbs.bat

:Mail_Test
IF EXIST C:\TG\ECHOMAIL.TG? GOTO Mail_Out
Goto Start

:End          
-----end FRODO.BAT-------

DOBBS.BAT is created by FD each BBS call, and it then activates EXEBBS.BAT
which you design.

EXEBBS.BAT (Remember that this file is activated by DOBBS.BAT):

----begin EXEBBS.BAT--------------

C:
CD \TG
TELEGARD -B%1 -X%3 -N%4 -C%5 -Q
If Not Exist c:\tg\ECHOMAIL.TG? GoTo End
Del c:\tg\ECHOMAIL.TG?
cd \fd
Gecho Toss
Gecho Scan
:END
Frodo                         ; your FD batch file

This is a very basic batch file to startup TG with the DOBBS process. Make
note that if you use another filename for your 'FD.BAT' other than 'FRODO.BAT'
you will need to change it here too!  If you dont, your BBS will land in
'zululand' because it wont know what to do after a caller exits!

(Note:  %1=baud, %2=port, %3=time till next event, %4=node if multinode, 
%5=other modem connect info such as if it is an ARQ connection)

Informational assistance provided by Kevin Watkins.

Note, this version shows also how to scan for mail left by a caller and
packing if they left any outbound mail by checking for the existance of a
ECHOMAIL.TG? file.  This is optional and the mail_test routine shows for local
sysop mail.  Note that the echomail.tg? means in place of the ? to use J for
Jam or S for Squish.


End part 2.
                                  xxcarol
                                  TG Beta, Norfolk

