home *** CD-ROM | disk | FTP | other *** search
- ZIP FILE COMMENT ADDER AND READER 1.0
- -------------------------------------
- by William J. McBrine III
-
- Copyright (c) 1990 McBrine Computer Products
- May be freely distributed
- Donations welcomed
-
- ZIPCMNT.EXE allows adding of long comments (sometimes referred to as
- "banners") to .ZIP files. Multiple files can be commented at once,
- using wildcards. CMNTREAD.EXE reads comments from zipfiles back into
- text files, so they can easily be reused, edited, etc.
-
- There are other zip commenters available, but I've found they all have
- annoying "features" and flaws. So, I wrote my own. Here's a comparison
- of features with one of the most popular commenters (referred to as
- "the leading brand" for purposes of this document only):
-
- ADVANTAGES OF ZIPCMNT OVER "THE LEADING BRAND"
-
- * NO mandatory first line - e.g., "Banner by 'THE LEADING BRAND'"
- - is created
-
- * No 10-line limit - limit is 64k
-
- * Comments are read as binary files, not text. ANY file can become a
- comment, and ANSI comments work perfectly
-
- * Program does not abort when it can't read a file, but continues on
- to the next one specified by the wildcard (if used) after giving an
- error message
-
- * ZIP files are truncated when updated with shorter comments than they
- already have (the leading brand leaves the extra part of the dead
- comment dangling)
-
- * ZIPCMNT program is much shorter
-
- * Comments can be read back into text files with CMNTREAD (including
- leading-brand- and other-inserted comments)
-
- DISADVANTAGE OF ZIPCMNT
-
- * You have to create the comment file with a seperate program (but any
- will do - you could even use the leading brand for this purpose, by
- stripping off an existing comment with CMNTREAD)
-
- ----------------------------------------------------------------------
-
- Best of all, ZIPCMNT is FREE, including the source code! There is NO
- REGISTRATION, but any and all DONATIONS are VERY WELCOME!
-
- The programs are pretty straightforward and self-documenting, but a
- few features need additional comment:
-
- The comment file is normally a plain text file, often including IBM
- graphics characters, generated by any text editor or screen-drawing
- program.
-
- ANSI comments will work well with ZIPCMNT (unlike some zip commenters),
- and so will ANY file - even, say, an EXE - because the comment files
- are read as binary files rather than text files. However, ANSI will
- not be displayed by PKZIP/PKUNZIP unless the "-q" option is specified
- (on the PK command line). Otherwise the ESC codes (charcter 27) will
- be stripped on display. (This was apparently done to prevent ANSI
- sabotage of the keyboard.) CMNTREAD will not strip ESC codes.
-
- "ZIPCMNT * cmntfile.ext" (for example) will comment all files in a
- directory. But wildcards cannot be used for the comment filename, nor
- for the ZIP filename with CMNTREAD.
-
- Using "NUL" for the comment filename with ZIPCMNT will strip the
- ZIP file of any comment. "CON" will allow you to type in a comment,
- terminated with a ^Z (much as if you had used "PKZIP -z", but allowing
- multiple lines).
-
- A "/l" can be added as the third parameter on the ZIPCMNT command
- line, to insert two <CR><LF> pairs before the main comment. Without
- this option, the first line of the comment is printed immediately
- following the dash after PKZIP/PKUNZIP's printing of the filename, and
- so gets pushed over to the right. Of course, you can edit the comment
- file to insert a blank line or two yourself, if needed; this option
- just lets you be lazy. I was lazy in implementing it, so it has to be
- the third parameter.
-
- As kind of an experiment, I'm distributing this program under the "GNU
- General Public License". Please see the file LICENSE.DOC for an
- explanation of this.
-
- The programs were compiled with Turbo Pascal 4.0 and compressed with
- Fabrice Bellard's LZEXE 0.91, which I cannot recommend highly enough.
-
- There are six files that make up the package:
-
- ZIPCMNT.DOC This document
- ZIPCMNT.EXE Zip file comment adder
- CMNTREAD.EXE Zip file comment reader
- ZIPCMNT.PAS Turbo Pascal 4.0 source code
- CMNTREAD.PAS Turbo Pascal 4.0 source code
- LICENSE.DOC GNU General Public License
-
- Please distribute them together.
-
- I welcome comments, suggestions and donations:
-
- McBrine Computer Products
- 514 S. Jackson St.
- Salisbury, NC 28144-5428
-
- Or leave E-mail to WILLIAM MCBRINE on:
-
- HomeBoy's Digital UnderGround - (704) 637-2342 3-24 baud 24 hrs.
- The Big Byte - (704) 279-2295 3-96 baud 24 hrs.
-