home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / TICKFBS / TICKFB.DOC < prev   
Text File  |  1991-11-30  |  3KB  |  120 lines

  1. TICKFB    by Erik VanRiper   1:107/230
  2.  
  3. What it is:
  4. -----------
  5.  
  6.        TICKFB is a little utility I wrote to create a .BAT file for MAXIMUS
  7. 2.0's FB.EXE and Barry Geller's TICK.EXE.
  8.  
  9. Warrenty:
  10. ---------
  11.  
  12.        TICKFB is free (in a non-commercial environment).  Therefore, there
  13. is no warrenty, expressed, implied, imploded, exploded, under, over, etc.
  14.  
  15. Why?
  16. ----
  17.  
  18.        I have 67 file areas.  Every time (about 4 times a day) I got in a
  19. .TIC file, I would have to thrash my HD all over again.  Not too much fun
  20. to listen to.  This program creates a .BAT file to only compile those areas
  21. that you got in .TIC files for.
  22.  
  23. Command line arguments:
  24. -----------------------
  25.  
  26.        TICKFB D:\MAX\FBRUN.BAT AREA.DAT [D:\MAX\TICKFB.CTL]
  27.  
  28.        The first argument is the name and path of the .BAT file that you
  29.        want created.
  30.  
  31.        The second one is the name of your AREA.DAT.
  32.  
  33.        The last argument (optional) is the name and path of the TICKFB.CTL
  34.        file.
  35.  
  36.  
  37. TICKFB.CTL:
  38. -----------
  39.  
  40.        I found that my .TIC areas do not match my AREA.DAT areas, so I
  41. wrote into the program the ability to substitute area names.  Here is the
  42. format:
  43.  
  44. .TIC Name  MAX Name
  45. ===================
  46.  
  47. PDNCEE     CEE
  48. PDNASM     ASSEMBLY
  49. PDNBASIC   BASIC
  50. PDNPASCL   PASCAL
  51. PDNBATCH   BATCH
  52. PDNLANG    LANGUAGE
  53. WIN_UTIL   WINUTIL
  54. FIDONEWS   NEWS
  55. NODEDIFF   NEWS
  56.  
  57.  
  58.        The column headers DO NOT go in the .CTL file.  For example, I put
  59. my NODEDIFF's and FIDONEWS' in the same area, and call it NEWS.  So, I
  60. don't want FB to compile FIDONEWS and NODEDIFF, as those areas do not
  61. exist.  TICKFB will write out NEWS instead for both these areas.
  62.  
  63.  
  64. "Intelligent"
  65. -------------
  66.  
  67.        If there are 100 .TIC files in your inbound directory, and they are
  68. all for the area PDNCEE, TICKFB will only write CEE to the .BAT file once.
  69. Also, TICKFB will use the .TIC area name as a default, UNLESS there is a
  70. substitution found in the .CTL file.  In other words, TICKFB will not cause FB
  71. to run multiple times for the same file area.
  72.  
  73. How to use:
  74. -----------
  75.  
  76.        In my master .BAT file, I simply check for the existence of *.TIC.  If
  77. there are any, I change directory into my inbound area, run TICKFB, then go to
  78. my support directory and run TICK.  Then I go to my MAX directory and call the
  79. newly created .BAT file.  Looks like this:
  80.  
  81.   if exist d:\bink\file\*.tic goto tick
  82.   goto start
  83. :tick
  84.   d:
  85.   cd \bink\file
  86.   tickfb d:\max\fbrun.bat area.dat d:\max\tickfb.ctl
  87.   cd \support
  88.   tick >> d:\bink\tick.log
  89.   call fbrun.bat
  90.   cd \bink
  91.   goto start
  92.  
  93.        You can delete FBRUN.BAT when you are finished if you want, TICKFB will
  94. just write over the old one.
  95.  
  96. ErrorLevels:
  97. ------------
  98.  
  99.        In case you need them:
  100.  
  101.        ErrorLevel     Meaning
  102.        ----------     -------
  103.           255         Error
  104.            1          Processed .TIC files
  105.            0          No .TIC files found.
  106.  
  107.  
  108. Source Code:
  109. ------------
  110.  
  111.        Written in C.  Available on request.
  112.  
  113. Where I can be reached:
  114. -----------------------
  115.  
  116.        Via NetMail, or in the Maximus support conference MUFFIN.
  117.  
  118.  
  119. /* Erik */
  120.