home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / WILDCAT / GFRWCCFG.ZIP / RUN.BAT < prev   
DOS Batch File  |  1993-08-26  |  3KB  |  129 lines

  1. @echo off
  2. goto startfd
  3.  
  4. rem     Name      :  Run.Bat
  5. rem     Procedure :  Runs FrontDoor 2.02nc
  6. rem     Last Rev. :  Aug. 26, 1993
  7.  
  8. :startfd
  9. cls
  10.   set wcnodeid=1
  11.   set wcportid=1
  12.   set wcirqid=4
  13.   set wcbaseid=$3f8
  14.   cd\wc30\data
  15.   nodeup 1
  16.   cd\fd
  17.   fd -NOUNPACK
  18.   if errorlevel 100 goto maint
  19.   if errorlevel 90 goto board
  20.   if errorlevel 80 goto local
  21.   if errorlevel 60 goto mail
  22.   if errorlevel 10 goto break
  23.   if errorlevel 1 goto done
  24.   if errorlevel 0 goto done
  25.   goto startfd
  26.  
  27. :board
  28.   arq2mnp
  29.   call dobbs.bat
  30.   goto startfd
  31.  
  32. :local
  33.   cd\wc30
  34.   wildcat /B LOCAL
  35.   cd\fd
  36.   goto startfd
  37.  
  38. :maint
  39.  
  40. REM create a filelist for the BBS and another one for Gofer distribution
  41. REM in the format <net>-<node>.LST archived with .ZIP or .ARJ
  42.  
  43.   cd\wc30
  44.   wcpro files.pro
  45.   cd\filelist
  46.   copy files.lst 107-102.lst
  47.   pkzip -m! files.zip files.lst
  48.   P:\pkz110r\pkzip -m! 107-102.zip 107-102.lst
  49.   mv files.zip F:\001
  50.   mv 107-102.zip F:\file\gofer_nj
  51.   cd\wc30
  52.   wcpro update.pro
  53.   fstat
  54.   ustat
  55.   cd\
  56.   FOR %%1 IN (C D E F G H I J K L M N O P Q) DO DS EN %%1:\ /s
  57.   wait!
  58.   boot
  59.  
  60. :mail
  61.   cd\tick
  62.   tick >> C:\bbslog\tick.log
  63.  
  64. REM We want to run Gofer Burrow and ArcMail3 so that when Gofer processes
  65. REM the incoming files, ArcMail3 will create a mail packet containing the
  66. REM Gofer generated user message. These should always be run together.
  67.  
  68.  
  69.   cd\gofer
  70.  
  71. REM Run Gofer in burrow mode to process incoming files, move them to the
  72. REM proper file area, and create the messages.
  73.  
  74.   gofer burrow
  75.  
  76. REM Run ArcMail3 to create a mail packet to your system containing the
  77. REM newly generated Gofer user message that WildMail can toss into the
  78. REM BBS's Netmail message area.
  79.  
  80.   arcmail3 to 107/102
  81.  
  82. REM Here we must do any file processing that can change file sizes BEFORE
  83. REM WCFile adds the file to Wildcat's database. For simplicity I listed
  84. REM the commands to strip the comments from .ARJ and .ZIP files. If you
  85. REM want to run a file scanner (Catscan,Transcan, etc.) you should run it
  86. REM after WCFile has added the files to the database.
  87.  
  88.   F:
  89.   cd\078
  90.   arj c *.arj -zNUL
  91.   for %%f in (*.ZIP) do pkzip %%f -z < NUL
  92.  
  93. REM Here we run WCFile in batch mode to read the Gofer created filelist
  94. REM and add those files to the Wildcat database.
  95.  
  96.   C:
  97.   cd\wc30
  98.   WCFILE /A:78 /U:GOFER /P:1,12,15,75 /N /D:C:\GOFER\FLIST\FILE1.BBS
  99.   REM    ^     ^        ^             ^  ^
  100.   REM    |     |        |             |  |
  101.   REM    |     |        |             |  Add Files W/ The Description
  102.   REM    |     |        |             |  In FILE1.BBS
  103.   REM    |     |        |             |
  104.   REM    |     |        |             Do Not Insert Keywords
  105.   REM    |     |        |
  106.   REM    |     |        Set Positions Of Start And End  Of Filename And
  107.   REM    |     |        Description (Must Follow The Format In Gofer.Cfg)
  108.   REM    |     |
  109.   REM    |     Set Uploader
  110.   REM    |
  111.   REM    Set File Area
  112.  
  113. REM This runs Wildmail to scan, toss, and process Netmail. You have to
  114. REM process Netmail so the ArcMail3 generated packet will get processed.
  115. REM You don't have to run Scan or Toss at this time.
  116.  
  117.   cd\wm30
  118.   wm scan toss netmail
  119.   cd\fd
  120.   goto startfd
  121.  
  122. :break
  123.   cls
  124.   echo.
  125.   echo.
  126.   echo Session is ended
  127.  
  128. :done
  129.