


     CAT.BAT runs the whole show; Wildcat, frontdoor, gomail, purge/renumber
     and any other programs you want access to. I run Telix, local access to
     DIS (a directory/file management program), and other functions
     from CAT.BAT. Remember to always have a copy of CAT.BAT in the Front-
     door and wildcat directories. Below is an item by item explanation of
     Cat.Bat.

     :start       label to restart cat.bat from other parts of cat.bat

      echo off    Don't want all cat.bat commands echo'd to the screen.
                  You can Rem this line for trouble shooting.

      ctty con    restore keyboard - console connection

      cd c:       required if running off different drives

      cd \fd      make sure your in frontdoors directory

      fd          start frontdoor

      if errorlevel 99 goto local_cat
                  Use frontdoors function keys to exit fd and start wildcat
                  locally.

      if errorlevel 97 goto telix
                  Use frontdoors function key to exit and start telix


      if errorlevel 87 goto process_mail
                  Use to process mail manualy and/or by Frontdoor event.


      if errorlevel 81 goto pack_mail
                  use frontdoor function key to pack out going mail for
                  special reasons. Mail also Mets packed by an external
                  event.


      if errorlevel 55 goto event_one
                  frontdoor external event to run wildcat events. you can
                  have several events run daily or weekly for wildcat.
                  You may also have seperate events to Pack the mail ect.


      if errorlevel 45 goto 2400_baud
                  wildcat 2400 baud user called. errorlevels are setup in
                  frontdoor for exit on caller. you must define a errorlevel
                  and have an entry for each baud you support.

      if errorlevel 40 goto 1200_baud

      if errorlevel 34 goto 300_baud

      if errorlevel 10 goto done           exit frontdoor to dos

      :2400_baud
       cd c:\wc40
       wildcat /b 2400
       goto after_cat

                Change to wildcat directory. call wildcat for baud rate. goto
                after_cat when user logs off. If you have 19600 baud users,
                or above make more label areas. keep the 300 baud label area
                even if you don't allow 300 baud users. let wildcat send them
                the no 300 baud allowed message.


      :1200_baud
       cd c:\wc40
       wildcat /b 1200
       goto after_cat

      :300_baud
       cd c:\wc40
       wildcat /b 300
       goto after_cat


      :local_cat                 Goto wildcat in local mode.
       echo ATH1 > com2          Takes phone off hook to show busy.
       wcportid=0                Required to run Aviewcom in local mode.
       cd c:\wc40
       wildcat /b local
       goto after_cat            Branch to After_cat after Log Off.


      :after_cat                 Run any utilities ect, after each User Logsoff.
       echo ath1 > com2          set the COM to your com port number.
       cd\wc40
       WCTODAY /L /H9            Run Who called today utility.
       goto pack_mail          * pack_mail after each caller.
       goto start              * Go back to Frontdoor.
                               *NOTE see note after event_one

      :telix
       cd c:\telix
       telix.exe
       goto start
                used to run Telix telecomm prog from frontdoor.


      :process_mail
       echo ATH1 > com2
       gomail Toss scan         gomail will unpack and toss the mail into
                                wildcat's data base. If the scan option is
                                used, as shown, gomail will also scan for
                                mail to export.
       goto start


      :pack_mail
       echo ATH1 > com2
       cd c:\fd
       gomail scan              gomail will scan for mail to export then
                                Pack it in the archive of your choice.
       goto start


      :event_one                 Run Nightly maintenance utilities
       echo ath1 > com2
       cd\door\yt                Change to door games dir.
       ytmaint.exe               runs Yankee Trader nightly maintenance.
       cd\wc40
       WCPRO STATS.PRO           Run Pro utilities to make Stats file
       cd\fd
       goto pack_mail          *
       goto start              *

                               * NOTE in the above Branches, after_cat and
                                 event_one, you only need one goto line.
                                 one to pack the mail if you wish to or one
                                 to restart Frontdoor.
                                 You may pack the mail after each caller or
                                 as events, as you wish.


      :done       exit to dos
                  Exit frontdoor if frontdoor critical error. you can set up
                  different exit by frontdoor errorlevels if you want like
                  if errorlevel 9 goto error_nine. and have a label :error_nine
                  to attempt to fix the error or goto start to try to restart
                  frontdoor. NOTE if you do this and the error is still there
                  you will just cycle until you stop it.



I hope this explanation of the cat.bat file will help you in editing it for
your use.

Farrell L. Reis
James J.McGrail
