home *** CD-ROM | disk | FTP | other *** search
/ Lion Share / lionsharecd.iso / bbs_oth / vtst13.zip / VTST.DOC next >
Text File  |  1991-09-26  |  6KB  |  148 lines

  1.                                 VTST
  2.                             version 1.3
  3.  
  4.               you may use, copy and distribute VTST freely
  5.  
  6.                           Clyde W. Grotophorst
  7.                             GMUtant Software
  8.  
  9.  This is a simple program that manages virus testing of ZIP files
  10.  in a particular subdirectory.  I wrote this to help me automate the
  11.  checking of files uploaded to my BBS.  I use WILDCAT! BBS
  12.  software so I wanted a program that would run from a batch (event)
  13.  file.  Some systems, like PCBOARD, allow you to shell out after
  14.  each upload for testing, but the WILDCAT! software I'm using
  15.  (2.55) doesn't, hence the batch testing requirement.
  16.  
  17.  I may have been using SHEZ wrong, but it always stopped when the
  18.  ZIP file contained no EXE or COM files...and it wouldn't run in a
  19.  batch mode.  VTST was designed for and tested  with PKUNZIP.EXE
  20.  (1.10) and SCAN (various versions).  It will work with any combination
  21.  of unarchiver/tester that uses the following syntax on the command line:
  22.  
  23.  ProgramName [options] FileToProcess [Destination]
  24.  
  25.  VTST passes DOS the FullPathProgramName found in VTST.CFG then
  26.  the name of the file to process, then the destination (a temporary
  27.  sub-directory called ~VTST10).  If you want to specify options
  28.  (and your program accepts them BEFORE the name of the file to
  29.  process, put the options in your VTST entry:
  30.  
  31.  e.g., UnArcPrg=C:\ZIP\PKUNZIP.EXE -o
  32.  
  33.  VTST is written in Turbo Pascal (6.0) and uses TurboPower's Object
  34.  Professional to handle the interaction between the VTST,
  35.  your unarchiving program, your virus checker, and your zipcomment
  36.  program.
  37.  
  38.  VTST swaps itself to disk or EMS, then executes each program...this
  39.  will free most of your RAM up to the other programs...
  40.  
  41.  The program will test up to 500 files in a given subdirectory.
  42.  
  43.  Here's how to put VTST to work for you:
  44.  
  45.  1. With an ASCII editor, open the file VTST.CFG and follow the
  46.     instructions there for configuring VTST to your needs.
  47.     Basically, you need to enter three things (values in the
  48.     file as distributed are shown):
  49.  
  50.     UnArcPrg=C:\UTILS\PKUNZIP.EXE
  51.     Vchecker=C:\UTILS\SCAN.EXE
  52.     ExtToCheck=ZIP
  53.     CommentRemover=C:\UTILS\ZIPCOMNT.EXE
  54.  
  55.     Use the FULL PATH NAME for the UNARCPRG, VCHECKER and COMMENTREMOVER
  56.     entries.
  57.  
  58.  2. Copy VTST.EXE and VTST.CFG to the sub-directory where you
  59.     want run your check (typically the sub-directory where user
  60.     uploads reside).
  61.  
  62.  3. Type VTST and the program will pause before beginning.
  63.     Type VTST /b to begin the program without a pause (if you're
  64.      running it from a batch file).
  65.  
  66.     The program will go through all files matching the EXTtoCHECK extension.
  67.     If it finds a virus, it will STOP with a message to that effect.
  68.  
  69. Here's the syntax of the line from VTST that calls your UnArchiving
  70. program.  This sample uses the default values stored in VTST.CFG:
  71.  
  72. UnArcPrg [PathYouAreIn\FILEtoUncompress+' *.EXE *.COM [TempDir]
  73.  
  74. And for the virus checing program, one of two methods:
  75.  
  76. 1) If VTST finds \SCAN.EXE in your VCHECKER string, it assumes you're
  77.    using Macfee's SCAN program.  The /NOMEM switch is added.
  78.  
  79.    VcheckerString FullPathYouAreIn\TempDir\*.* /NOMEM
  80.  
  81. 2) If \SCAN.EXE isn't in your VCHECKER string, VTST assumes you're
  82.    using something else so the /NOMEM switch isn't passed.
  83.  
  84.    VcheckerString FullPathYouAreIn\TempDir\*.*
  85.  
  86. If the unarchiver and virus scan programs both return errorlevels of
  87. 0 (no problems encountered), then VTST will call the program stored
  88. in the COMMENTREMOVER= value of the VTST.CFG file.  If there is
  89. a problem with a file, no comment processing will occur and a message
  90. will be written to the ASCII file VTST.RPT.
  91.  
  92. Here's a typical entry in VTST.RPT (for a damaged ZIP file):
  93.  
  94. PKFIXED.ZIP  C:\UTILS\PKUNZIP.EXE returned DOS errorlevel code: 1
  95.  
  96.  
  97.  
  98.    GMUtant OnLine BBS :: 703-323-3100  (1200/2400 baud, 24 hrs a day)
  99.  
  100.  
  101. Release History
  102.  
  103.  1.3 Ability to run program without opening pause added.
  104.      Support for a the ZIPCOMNT program added.  If you're using
  105.      ZIPCOMNT, create a ASCII file for your comment, then put
  106.      it's name in your environment via the SET command:
  107.  
  108.      SET ZIPCOMNT=C:\UTILS\MYCOMMNT.FIL
  109.  
  110.      Then when ZIPCOMNT is run by VTST, it will strip any existing
  111.      comment in the file and replace it with the comment file pointed
  112.      to by the SET ZIPCOMNT line.
  113.  
  114.      Here is the command passed to DOS when VTST shells out for the
  115.      comment program
  116.  
  117.      FullPathNameofCommentRemover nameofcurrentZIPfilebeingprocessed
  118.      for example:
  119.  
  120.      C:\UTILS\ZIPCOMNT TESTFILE.ZIP
  121.  
  122.  
  123.  1.2 VTST now extracts ALL files from a ZIP - before just COM and EXE
  124.      files were extracted.  This approach caused a lot of errorcode
  125.      11's to be returned by PKUNZIP (no matching files found). Since
  126.      most non-EXe and non-COM files are small, why not test everything?
  127.      At least this way, the error report is more meaningful--if
  128.      a file is listed there, it probably DOES have some sort of
  129.      problem and should be investigated.
  130.  
  131.  1.1 VTST didn't correctly pick up errorlevel codes returned from the
  132.      unarc/virus-check programs.  Thus, to find out if your files
  133.      were infected, you had to watch the screen.
  134.      Now VTST correctly picks up DOS errorlevel codes from the
  135.       external programs. If PKUNZIP or SCAN (or whatever you use)
  136.       return a non-ZERO errorlevel code, VTST will see it, and write
  137.       an ASCII output file (VTST.RPT) that contains the name of the
  138.       offending archive file, the program returning the error code
  139.       and the code returned).  Here is a sample line:
  140.  
  141.      COREAD.ZIP  C:\UTILS\PKUNZIP.EXE returned DOS errorlevel code: 11
  142.  
  143.       When VTST finishes, it will let you know whether or not a
  144.       problem was encountered.
  145.  
  146.  1.0 original release
  147.  
  148.