home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / ARCHIVE / CHKAV22.ZIP / CHKAV.DOC < prev    next >
Encoding:
Text File  |  1991-05-05  |  6.0 KB  |  118 lines

  1.                                    ChkAV 2.0
  2.                        CopyRight 1991 by Dave Navarro, Jr.
  3.                           Courtesy of The Bard's Lair
  4.  
  5.  
  6.      A big problem nowadays for sysops is the ever increasing problem of
  7.      BBS's like Rusty & Edies that reZIP all their files using their own
  8.      -AV, often overwriting a legitimate -AV created by the original
  9.      author, solely for the purpose of advertising their BBS number to
  10.      attract more callers.  I'll agree that any BBS can always use more
  11.      callers, but that's the purpose behind ZIP comments, do your
  12.      advertising there, and if that file is uploaded to another BBS and
  13.      your ZIP comment get's overwritten, well at least the person who
  14.      uploaded that file saw your ad.
  15.  
  16.      Where am I going with all this?  Well, after reading a long discussion
  17.      in the RIME/MetroLink conference concerning the subject, I came across
  18.      a few messages between a few individuals who were working on a program
  19.      that would check for the AV in a ZIP and return an error level if it
  20.      found one.  Well, I jumped on the modem, called up the BBS that had
  21.      the program and downloaded it, and it worked really nicely.  However,
  22.      there were a few problems.
  23.  
  24.      The program I downloaded would execute PKUNZIP using the -T option to
  25.      test the zip and redirect that output to a text file.  The ChkAV program
  26.      would then search that text file for the presence of -AV and if found,
  27.      would return an error level.  Well it works, but if you happen to run
  28.      accross a ZIP file with a file called -AV (a valid DOS filename) it
  29.      thinks that the file has an -AV in it.  Also, if you have a ZIP file
  30.      with a LOT of files in it, the procedure slows your filechecking
  31.      considerably.
  32.  
  33.      Being a programmer myself, and having just written a library to
  34.      access information inside of ZIP files, I thought I'd see if I could
  35.      find a more direct method.  Unfortunately, while Phil Katz was nice
  36.      enough to thoroughly describe the information fields within a ZIP
  37.      header, he gave no information whatsoever about -AV's or testing
  38.      for them.  But after a couple of hours of pouring over his notes and
  39.      some notes I made, I found out a fool-proof method for determining
  40.      is a ZIP has an -AV in it.  Unfortunately, I cannot determine who's
  41.      -AV it is, but you can't have everything.
  42.  
  43.      To use ChkAv, just type ChkAv FILENAME.EXT, and ChkAv will return
  44.      ERRORLEVEL=1 if the file is not a valid ZIP, ERRORLEVEL=2 if the
  45.      file has an -AV, or no ERRORLEVEL if the file does not exist or
  46.      does not contain an -AV.  Note:  ChkAv also works with self-
  47.      extracting ZIP files as well.
  48.  
  49.    * Version 2.0 now does all printing through DOS so that output may
  50.      be redirected.
  51.  
  52.      --------------------------------------------------------------------
  53.                                  May 4, 1991
  54.                                  Whose AV 1.0
  55.                      CopyRight 1991 by Dave Navarro, Jr.
  56.  
  57.      Well just after I wrote ChkAv, I started getting messages asking if
  58.      I could make it so that ChkAv could figure WHOSE AV it was.  While
  59.      I'm not a half bad programmer, I am not good enough to figure out the
  60.      encryption technique that PK used for AV's.  The only way to accomplish
  61.      it is to unzip the file and search for the name.  So, I wrote Whose AV
  62.      which will search the PATH for WHOSAV.CFG which contains a list of the
  63.      'names' you want to search for, then calls PKUNZIP to unzip the file
  64.      with the -T function and redirect it to a file called WHOSAV.LST which
  65.      is then parsed for the 'names' contained in WHOSAV.CFG.  If one is
  66.      found an errorlevel is returned and the 'name' found is printed to
  67.      the screen.  All output is redirectable so you could redirect the
  68.      name to a text file for a message or something.  After WHOSAV is
  69.      finished it erases WHOSAV.LST.
  70.  
  71.      I use it to find ZIPs from Rusy & Edie's and reZIP them without an
  72.      AV after ZipLab delete's their little advertisements from within
  73.      the ZIP.
  74.  
  75.      --------------------------------------------------------------------
  76.                                  May 5, 1991
  77.                                  DescPlay 1.1
  78.                       CopyRight 1991 by Dave Navarro, Jr.
  79.  
  80.      No sooner did I get WhosAv done and another request came in.  This
  81.      time for a utility that would grab the description for a file from
  82.      ProDoor and display it so that it could be redirected.
  83.      Thus DescPlay was born (Description Display).  Put DescPlay %2 in
  84.      your PROUT1.BAT in the appropriate place and DescPlay will grab the
  85.      description from ProDoor's $DOOR.NAM file if it was type in before
  86.      the upload took place and display it to the screen through DOS
  87.      allowing it to be redirected.  If PCBOARD.SYS is in the same directory
  88.      then the name of the person who uploaded the file will be given
  89.      on the last line of the description.
  90.  
  91.    * Versiom 1.1 fixes problem where redirection wouldn't work with
  92.      COMMAND.COM (I use 4DOS)
  93.  
  94.    * Version 1.2 now searches DOS's path for $DOOR.NAM for SysOps that don't
  95.      keep $DOOR.NAM in the current directory.
  96.  
  97.  
  98. Disclaimer:
  99.  
  100.     All utilities were tested on a 486 machine with everything on it,
  101.     and a generic XT clone with 640k and monochrome and worked without any
  102.     problems.  However, if they do not work on your system, or cause any
  103.     problems I cannot be held responsible.  Use these files at your own
  104.     risk.
  105.  
  106.     If you do have any problems, or suggestions, please call The Bard's
  107.     Lair at 718-381-3651 and leave me a note.  I currently run ChkAv,
  108.     WhosAv and DescPlay in my PROUT1.BAT file in ProDoor and it works
  109.     without a hitch.
  110.  
  111. Registration:
  112.  
  113.    Guess what!  These little utilities are absolutely free!  I have
  114.    written a lot of other programs that you can register if you want
  115.    to pay me for my efforts.  These goodies were written to help combat
  116.    BBS's and individuals that abuse the AV privelage.
  117.  
  118.