ZIPLAB.DOC

18.3 KB 7382ca28398285b1…
ZipLab PLUS Version 1.2
(C)Copyright 1991 by Jeffrey S. Morley
October 26th, 1991

Archive test program for PCBoard/ProDoor
                  


















































Page 1                                                         ZipLab Plus 1.2




                               Table of Contents
===============================================================================

Configuration Changes (PTEST.CFG) / Quick Start ...........................  3
PTEST.CFG Changes and Description / Example ...............................  4
ProDoor Setup .............................................................  6
ZipLab Plus Features and Changes ..........................................  7
Credits ...................................................................  8



What is ZipLab Plus?

   ZipLab is an alternative/replacement for the PCBTEST.BAT/PROUTEST.BAT 
files which are run by PCBoard/PRODOOR after a user uploads file(s). In 
the past, we have all run maybe  PKUNZIP -T  on each file, and if there 
were no CRC errors, all was considered well.   There is a lot more we can 
do  to protect ourselves and our users from unwanted files!  ZipLab will 
do the following:

* Test for CRC errors in the archive file.
* Test for imbedded archive files and if found, CRC check those too.
* Test for imbedded .TD0 (Teledisk) files and if found, test with TDCHECK.
* Virus SCAN archive member files, using SCAN.EXE from McAffey.
* SCAN inside archive files imbedded inside another archive file.
* Remove all archive comments from the file.
* Replace archive comments with your own. (Optional)
* Delete unwanted BBS ads and/or other unwanted archive members as you define.
* Test .GIF files for validity if you accept that file format (Optional)
* Reject programs older than a date (year) which you specify.
* Adds most recent archive member date to the description (Optional)
* Allow you to test outside of PCBoard/ProDoor, and use wildcards!
* Run the full range of tests on .ZIP, .LHZ and .ARJ archive formats
* Run SCAN files which you optionally pass without ZIP testing.





 SPECIAL NOTICE ***** SPECIAL NOTICE **** SPECIAL NOTICE ***** SPECIAL NOTICE



  ** ZIPLAB IS NO LONGER "FREEWARE". REGISTRATION IS REQUIRED FOR ITS USE **

    PLEASE SEE THE ENCLOSED REGISTER.DOC FILE FOR REGISTRATION INFORMATION


          
 SPECIAL NOTICE ***** SPECIAL NOTICE **** SPECIAL NOTICE ***** SPECIAL NOTICE





Page 2                                                         ZipLab Plus 1.2



********* A CHANGE TO YOUR .CFG FILE *IS* REQUIRED FOR THIS RELEASE! *********
 
REQUIRED FOR OPERATION:

You must already have the following programs.....

PKZIP.EXE   - Phil Katz archive create program (version 1.01 +)
PKUNZIP.EXE - Phil Katz archive extract program (version 1.01 +)
LHARC.EXE   - Yoshi's archive program (version 2.12 + or LHA.EXE)
ARJ.EXE     - Robert Jung's archive program (version 2.10 +)
TDCHECK.EXE - .TD0 (Teledisk) checker from SyDex (any version)
SCAN.EXE    - McAffey's virus detection program (any version)

There are other small utility programs which I have bundled with this 
.ZIP. They may require registration for continued use.  PLEASE SUPPORT 
SHAREWARE AND THE SHAREWARE CONCEPT! REGISTER THESE PROGRAMS IF REQUESTED 
TO DO SO!

RECOM.EXE   - Mike Loewen's ZIP file comment remover and date stamper.
GIFTEST.EXE - Dave Navarro's .GIF file tester (part of GIFTSTxx.ZIP)
DELF.COM    - A version of DEL with no "Are you sure?" prompt written by me.
              (No registration required)


Quick Start ---

* NOTE!  Since PCBoard is SHELLING out to run PCBTEST.BAT, there is 
  limited memory available for PTEST.EXE.  If you are running in a 
  multitasking or other memory constrained situation, PTEST may not work! 
  You should have at least 210k free memory when shelled out of PCBoard.  
  If this is a problem, you may want to consider the VAROOM (overlay) 
  version of PCBoard, which runs in considerably less memory than the 
  standard PCB.EXE.
  
  The other option is to run PCBoard with the SET PCB = /SWAP environment 
  variable.  This will cause PCBoard to "swap" its code to the best 
  available storage (EMS, DISK) whenever a SHELL function (external 
  protocol, viewfile, and even DOORS if you have the SHELL column in 
  DOORS.DAT(LST) set to "Y") is called.  This method will cause a slight 
  delay when SHELLING, but will provide the largest amount of available 
  DOS memory for your external code.
  
* Place the PTEST.EXE, SETUP.EXE and DELF.COM files into a directory which 
  is in your DOS PATH.

* UnZIP the enclosed supplemental utilities into directories in your DOS 
  PATH. Make note of where you put them, you will need this information 
  later.

* Create, or use any existing directory to hold your PTEST configuration 
  files. Change into this directory, and run SETUP.EXE once for each of 
  your nodes. Be sure to give different configuration file names for each 
  node.  I use PTEST1.CFG and PTEST2.CFG. You may keep the particular 
  node's configuration file in the PCBoard ROOT/HOME directory for the 
  node, but this is not required.  



Page 3                                                         ZipLab Plus 1.2


* Fill in the following information when prompted by SETUP.EXE:

        -  The [drive:\path\]filename.ext of the .CFG file you wish created.
           (This information will not be written to the .CFG file)
        -  The type of modem HANDSHAKE you desire.  This can be 
           0, 1, 2 or 3.  0=none, 1=XON/XOFF, 2=CTS, 3=CTS & XON/XOFF
           (Use 2 or 3 with an error correcting modem...)
        -  The DRIVE:\PATH\NAME of your PCBOARD.DAT file for this node.
        -  The name of your BBS system.  43 characters maximum.
        -  The DRIVE and PATH to the directory where rejects will be
           placed pending manual sysop inspection.
        -  The date (yyyy) which will be the minimum accepted year.  ZIPs
           containing files older than this will be rejected.
        -  A "Y" if you wish the "recent date" notation added to the file
           descriptions.  A "N" if you do not wish this addition.
        -  The fully qualified filename of the zip comment to add, or
           type "NONE" if you don't want to add a comment.
        -  The fully qualified filename of a file which you may wish to
           add to the .ZIP, or "NONE" (please!) if you can refrain from
           this practice.
        -  Full DRIVE:\PATH to PKZIP.EXE.
        -  Full DRIVE:\PATH to PKUNZIP.EXE.
        -  Full DRIVE:\PATH to LHARC.EXE. (or LHA.EXE)
        -  Full DRIVE:\PATH to ARJ.EXE.
        -  Full DRIVE:\PATH to TDCHECK.EXE.
        -  Full DRIVE:\PATH to SCAN.EXE.
        -  Full DRIVE:\PATH to RECOM.EXE.
        -  Full DRIVE:\PATH to GIFTEST.EXE (or NONE if not using)   
           NOTE!!! This was TESTGIF.EXE in previous versions, but is now
           the more powerful GIFTEST.EXE from the same author.
        -  The DRIVE:\PATH\FILENAME of your GIFTEST.CFG file.
           Just enter NONE if you do not desire to test .GIF files.  
        -  A list, each on one line, of any extensions (.EXE, .TXT 
           etc) Which will be passed without normal ZIP testing.  SCAN 
           will still be performed on these files.  Any extensions 
           other than .ZIP which do not appear in this .CFG file will 
           be rejected by the process.  The "." is optional. If .GIF 
           appears in this list, GIFTEST will be used to test the 
           integrity of the .GIF file.
NEW!!      If you enter a "*" as one of the extentions, then ALL files 
           will be passed through, with non-archived files being 
           SCAN'd only.
        -  A list, each on one line, of files which you wish deleted 
           from .ZIP's before posting.  This could include the famous 
           "READMEOR.DIE", "BBS.AD", or other unwanted advertising. 
           You may also have a file with these names listed one on 
           each line, and pass the name of the file with an "@" before 
           the name.














 
Page 4                                                         ZipLab Plus 1.2


Sample PTEST.CFG file:
            
            2           
            C:\NODE1\PCBOARD.DAT
            The Interconnect BBS
            M:\HOLD
            1990
            Y
            C:\EXE\COMMENT.CMT
NEW!!       C:\EXE\FILETO.ADD
            C:\ZIP\PKZIP.EXE
            C:\ZIP\PKUNZIP.EXE
NEW!!       C:\ZIP\LHA.EXE
NEW!!       C:\ZIP\ARJ.EXE
            C:\ZIP\TDCHECK.EXE
            C:\DIAGS\SCAN.EXE
            C:\EXE\RECOM.EXE
NEW!!       C:\EXE\GIFTEST.EXE
NEW!!       C:\EXE\GIFTEST.CFG
            .ROM
            .GIF
NEW!!       @BBSADS.LST

* Edit your existing PCBTEST.BAT file, and delete the whole thing except 
  for two lines:
  
  Sample PCBTEST.BAT file:
  
  @ECHO OFF
  PTEST %1 C:\ZIPLAB\PTEST1.CFG
 
   
* That's it... Now when PCBTEST.BAT is run by PCBoard, it will pass 
  command over to PTEST.EXE with the parameter containing the path
  and name of the file to be tested.  PTEST will check out the file,
  placing any rejects in the holding directory you specified in the
  SETUP process above.  

  


















Page 5                                                         ZipLab Plus 1.2



*  PRODOOR SYSOPS -
   You will need to set up your PROUTEST.BAT file like this:
                
   echo off
   rem -- process test uploads request - for ProDOOR 3.4
   rem -- %1-logfile, %2-testdir, %3-comport
   
   rem -- test each uploaded file individually
   proecho %3 ~~Testing uploads.  Please wait...~
   
   SET PCBDOOR=PRODOOR
   for %%f in (%2\*.*) do COMMAND /c PTEST %%f drive:\directory\configfilename
   SET PCBDOOR=
   
   :end
            Replace the "drive:\..." stuff with the location and name
            of the PTEST configuration file for this node.
 
             Be sure you have enough ENVIRONMENT space to set up the
             PCBDOOR variable.  If you are using DesqView, you may
             want to set PCBDOOR=xxxxxxx in your AUTOEXEC.BAT to be
             sure enough room is allocated in your DesqView partitions
             for this variable.  The x's will be replaced by PRODOOR
             when PROUTEST.BAT is executed.  I need this variable set
             to "PRODOOR", or PTEST won't know you are running out of
             ProDoor.  You don't want to leave it set to PRODOOR though,
             since this could confuse things for other doors/processes.
             Thus the "SET PCBDOOR=" line.  ZipLab will fully work
             with ProDoor, including display/modification of the file
             descriptions.
  
























Page 6                                                         ZipLab Plus 1.2



NEW!! IN THIS VERSION *********************************************************

                            ZipLab PLUS Version 1.2
                            
                            
* Fixed a tricky little problem with an ASM routine I use to RD directories.
  The routine was not properly killing the directory if SET ZIPLAB= was used
  to set the "work" directory to a RAM drive.  This should now work fine.
  There were other instances where some machines (or DOS') were having 
  trouble with removing the "work" directory.  These are also fixed...
  
* Fixed a problem where PKUNZIP was stopping with a "do you want to overwrite?"
  message (which we couldn't see), if a file had imbedded paths with files of
  the same name in different paths.  This should no longer be a problem.
  
* The LHARC program is now called LHA.EXE in newer versions.  ZipLab will 
  work properly with either LHARC.EXE or LHA.EXE.
  
                                  
                            ZipLab PLUS Version 1.1
                            
* I had left in a lot of "local" display of the testing process, so that I
  could get useful debugging information back from my users.  I have now
  removed as much as possible of the local displays, and the process should
  look a lot less jerky to the watching sysop.
  
* Added a the ability to use ".*" as one of the extensions which will be
  passed without archive testing.  If you put ".*" in using Setup.Exe, ALL
  files will be passed.  Files passed with this method OR by specifing
  particular extensions in PTest.Cfg will still be SCAN'd for virus'.  
  
* Fixed a problem where in LOCAL mode using wildcards, a directory which
  contained a mixture of archive types (ZIP, ARJ, LZH) would cause problems
  after testing the first type.
  
* Some users were having problems reassigning the "working" directory.  This
  is by default PTEST.DIR under the current directory (C:\PCB\PTEST.DIR\ for
  most sysops), but can be changed to another directory with an environment
  variable.   In your Autoexec.Bat, the line "SET ZIPLAB=d:\path" will allow
  any drive and directory to be used for the "working" directory.  PLEASE,
  remember that this directory will be used and DELETED when the process is
  done.  Several people tried to use C:\PCB or just C:\ and experienced 
  unfortunate effects.  I have tested ZipLab PLUS with a ramdrive as the
  "working" directory, and it seems to work fine.  There may be a problem
  with directories containing a "." in early versions of DOS. if you are
  not running DOS 4.0 or later, and are having problems with ZipLab Plus,
  you may want to try reassigning to another directory name.
  
* Descriptions will not be modified if you are not running PCBoard 14.5(a)
  or later.  Early 14.5 versions didn't save the descriptions in the same
  location during the testing process, and ZipLab Plus won't find them.
                            
                            
                            ZipLab PLUS Version 1.0
                
* This is the new ZipLab PLUS!  A lot of hard work has gone into this and 
  earlier versions,  and I will be requiring a *REGISTRATION FEE* with 
  this version.  See REGISTER.DOC for details on how to register ZipLab 
  PLUS.
                
* ZipLab will now test .ARJ and .LZH files, as well as the .ZIP 
  format.  You will need to have ARJ.EXE and LHARC.EXE/LHA.EXE if you 
  accept these formats, and a change to the .CFG file is *REQUIRED* to 
  tell PTEST where they are.  You must put them in the PTEST.CFG file, 
  even if you don't accept these formats,  and don't have the 
  programs... Just lie to it.
                
* ZipLab now fully supports ProDoor as well as PCBoard.

* You may now run ZipLab while out of the bulletin board system and use 
  wildcards (* or ?) in the testing procedure. This will allow you to test 
  existing archive file(s) on your system.  *NO* changes will be made to 
  existing descriptions. To enable this feature, place the word LOCAL at 
  the end of the PTEST command line.

  EXAMPLE: C:\ZIPLAB>PTEST m:\pcb\dir1\*.zip ptest.cfg LOCAL
                
* ZipLab will now SCAN archives inside archives to test for virus 
  infestation.
                
* You may now have rejected uploads left in your private directory if you 
  prefer this setup.  Set the "holding" directory  to the location of your 
  "private" or "upload"  directory  (whichever you wish),  and the file(s) 
  will remain there. The description(s) will be posted to your "private" 
  dir file.  This corrects a situation where sysops trying to do this with 
  earlier releases of ZipLab would lose the rejected file.
                
* By default, ZipLab will use a directory called PTEST.DIR under the 
  current directory for unzip'ing and testing purposes.  This directory 
  will be erased and removed by ZipLab at the end of the run.  If you wish 
  to use another directory for this purpose (like a RAM drive to improve 
  speed), set the DOS environment variable "ZIPLAB".  

  EXAMPLE:  SET ZIPLAB=E:\WORKDIR

* You may choose to add a file to the archive package, by adding the 
  appropriate information to the PTEST.CFG file.  I am opposed to this 
  practice, but don't desire to tell anyone how to run their shop.

* The ORIGINAL file date of the archive file is now retained. Earlier 
  versions of ZipLab would set the archive file date  to the date of the 
  newest member in the archive.  This was required for age testing, but is 
  no longer.
                
* ZipLab will NOT leave behind  "hidden,  read-only  or  system" files 
  which were imbedded in archives.  They will be tested, and properly 
  deleted when the tests are finished.
                
* ZipLab now uses GIFTEST.EXE to test .GIF files (if permitted).  This 
  program by Dave Navarro will allow you to set up a GIFTEST.CFG file - 
  giving you even more control over  .GIF  testing.  An addition to your 
  PTEST.CFG file is required to support this.  Please read the docs with  
  GIFTSTxx.ZIP  for details  on  how to best set up the GIFTEST.CFG file. 
  YOU MUST REGISTER GIFTEST TO USE IT!
                
* You may now put all BBS advertising file  names  into a text  file, one 
  on each line.  In PTEST.CFG, place an "@" before the name of this text 
  file, and ZipLab will delete all listed advertising  files in one pass.  
  THIS IS MUCH FASTER for those with multiple advertising files to reject.




Page 7                                                         ZipLab Plus 1.2



***********************************************************************************************

   This program was written in QuickBasic 4.5, with some help from 
Hammerly Computing's ProBas 4.01.   I have also included a few utilities 
which PTEST will use in the course of testing.  These utilities are the 
property of the authors, and you are strongly requested to register them 
if you continue to use ZIPLAB PLUS.

                             Jeffrey S. Morley
                           The Interconnect BBS
                               (703)425-2505

            PLEASE SEE REGISTER.DOC FOR REGISTRATION INFORMATION

                (C)Copyright 1989-1991 by Jeffrey S. Morley








































Page 8                                                         ZipLab Plus 1.2