home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT119.ZIP / ZV.TXT < prev   
Text File  |  1990-12-16  |  22KB  |  498 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                         ZipV - Bit Masons Zip Viewer 1.21
  9.  
  10.  
  11.               Copyright 1990 by Gordon Haff and Bit Masons Consulting.
  12.                              All rights reserved.
  13.  
  14.  
  15.  
  16.           Command:  ZV
  17.  
  18.           Purpose:  Provides a scrollable environment for selecting
  19.                     files contained within a ZIP file and viewing or
  20.                     extracting their contents
  21.  
  22.           Syntax:   ZV [d:][\path\]filename.ZIP
  23.  
  24.           Commands: <Enter> views files
  25.                     <Space> or <e> extracts files
  26.  
  27.           Prereqs:  100% IBM Compatible PC running DOS 2.1 or higher
  28.  
  29.           Archive Name:   ZIPV120.ZIP
  30.  
  31.  
  32.           Associated Programs:
  33.  
  34.                     In its default configuration, ZV REQUIRES Vern Buerg's
  35.                     LIST file viewing program and Phil Katz's PKUNZIP
  36.                     program.  LIST and PKUNZIP are Shareware and require
  37.                     separate registration with their authors.
  38.  
  39.                     While ZV can be operated from the DOS command line
  40.                     using the format described above, it is most
  41.                     conveniently called as a user-defined shell command
  42.                     (or SmartViewer in DF 4.0 and later) from within the
  43.                     author's Directory Freedom (DF) program.
  44.  
  45.           Other:    Your COMSPEC variable must be set.  See Section 2.1.
  46.  
  47.  
  48.  
  49.                                  ┌─────────┐
  50.                            ┌─────┴───┐     │              (tm)
  51.                          ──│         │o    │──────────────────
  52.                            │   ┌─────┴╨──┐ │  Association of
  53.                            │   │         │─┘  Shareware
  54.                            └───│    o    │    Professionals
  55.                          ──────│    ║    │────────────────────
  56.                                └────╨────┘    MEMBER
  57.  
  58.  
  59.           ZV 1.21                                                     2
  60.  
  61.  
  62.                                      DISCLAIMER
  63.  
  64.           The author hereby disclaims all warranties relating to this
  65.           product, whether express or implied, including without limitation
  66.           any implied warranties of merchantability or fitness for a
  67.           particular purpose. The author cannot and will not be liable for
  68.           any special, incidental, consequential, indirect or similar
  69.           damages due to loss of data or any other reason, even if the
  70.           author or an authorized agent has been advised of the possibility
  71.           of such damages.  In no event shall the liability for any damages
  72.           ever exceed the price paid for the license to use the software,
  73.           regardless of the form and/or extent of the claim.  The user of
  74.           this program bears all risk as to the quality and performance of
  75.           the software.
  76.  
  77.                                        LICENSE
  78.  
  79.           ZV is distributed as free, copyrighted software.  What this means
  80.           is that you can use this program for as long as you like without
  81.           cost or obligation.  What you cannot do is to sell this software
  82.           or make a profit off of it (except as described below) without
  83.           the express written permission of the author.
  84.  
  85.           ZV is the sole property of Gordon Haff.  The program may be
  86.           freely copied and transferred to individual parties.  It may be
  87.           posted on Bulletin Board systems (BBS) for electronic access as
  88.           long as NO FEE is charged for its distribution except for private
  89.           BBS operations that charge a regular user subscription fee.
  90.           Computer information services such as Compuserve (CIS), Genie,
  91.           and Byte Information Exchange (BIX) are authorized to post this
  92.           product for subscriber access.  ZV may be distributed on diskette
  93.           only by 1) disk distributors/vendors who are associate members of
  94.           the Association of Shareware Professionals (ASP) or 2) users
  95.           groups which do not charge more than a nominal fee ($5) to cover
  96.           the costs of distribution.  Any changes to these policies must be
  97.           made in writing by the author.
  98.  
  99.           This program is produced by a member of the Association of
  100.           Shareware Professionals (ASP).  ASP wants to make sure that the
  101.           shareware principle works for you. If you are unable to resolve a
  102.           shareware-related problem with an ASP member by contacting the
  103.           member directly, ASP may be able to help. The ASP Ombudsman can
  104.           help you resolve a dispute or problem with an ASP member, but
  105.           does not provide technical support for members' products. Please
  106.           write to the ASP Ombudsman at P.O. Box 5786, Bellevue, WA 98006
  107.           or send a Compuserve message via easyplex to ASP Ombudsman
  108.           70007,3536.
  109.  
  110.           ZV 1.21                                                     3
  111.  
  112.                                   TECHNICAL SUPPORT
  113.  
  114.  
  115.           Since this program is a freebie, unlike the shareware programs
  116.           for which I request a registration fee, I'm not going to make any
  117.           guarantees here with respect to bug fixes or other technical
  118.           support.  Having said that, I do like my programs to be as
  119.           bug-free as possible, so feel free to report any problems which
  120.           you run across.
  121.  
  122.  
  123.                Contact via:
  124.  
  125.                     Channel 1 BBS            (617) 354-8873
  126.                     Compuserve User ID#      72561,2637  (See Note 1)
  127.                     InterNet/ARPANET         72561.2637@compuserve.com
  128.  
  129.                     U.S. Mail                3205 Windsor Ridge Dr.
  130.                                              Westboro MA 01581
  131.                     Telephone                (508) 898-3321 (after 6pm
  132.                                                           Eastern time)
  133.  
  134.           The above are roughly in order of preference (i.e. how quickly
  135.           I'm likely to see your message and be able to respond).  I check
  136.           Channel One almost daily and the other electronic services at
  137.           least weekly in most cases.  In addition, I monitor the Interlink
  138.           and the PCRelay Shareware relays through Channel One.
  139.  
  140.           Note 1:
  141.           When contacting me via Compuserve, please use the Easyplex mail
  142.           system since I do not regularly monitor any of the IBM SIG
  143.           message bases.
  144.  
  145.           ZV 1.21                                                     4
  146.  
  147.  
  148.           1.0     Why and Whence ZV?
  149.           -----------------------
  150.  
  151.           The main reason that I wrote ZV is the following: I have a
  152.           shareware file management program called Directory Freedom which
  153.           is small and fast in spite of having more wonderful and exciting
  154.           features than I could possibly describe here (Plug #1).  Yet,
  155.           there was still one thing which I continually ended up having to
  156.           exit DF to do -- namely, to view the contents of files contained
  157.           within ZIP files.
  158.  
  159.           This annoyed me.
  160.  
  161.           I looked high and low for a program which I could call with DF's
  162.           nifty user-defined shell function (Plug #2), but nothing did
  163.           exactly what I needed.  So out came the assembler and, a week or
  164.           so later, out popped ZV,
  165.  
  166.           So.... armed with ZV, DF can now perform most of the major
  167.           archiving and de-archiving functions that people who deal
  168.           primarily with Phil Katz's ZIP format need.  (The next major rev
  169.           of DF will have the capability to archive files.)  For the fancy
  170.           stuff (such as selective de-archiving), you'll still need a
  171.           program like ARCMASTER or SHEZ, but DF will be able to handle all
  172.           the everyday stuff.
  173.  
  174.  
  175.           ZV 1.21                                                     5
  176.  
  177.  
  178.           2.0     How does it Work?
  179.           -------------------------
  180.  
  181.           I'm glad you asked that question.  It works incredibly well.
  182.           Oh.. HOW does it work.  Well, there's nothing to it.
  183.  
  184.           The command line syntax is just:
  185.  
  186.                 ZV [d:][\path\]filename.ZIP
  187.  
  188.           So, any of the following are valid:
  189.  
  190.                ZV TEST.ZIP
  191.                ZV C:\FOO\TEST.ZIP
  192.                ZV E:\FOOBAR.ZIP
  193.  
  194.           You do need to type the extension since ZV will look into any
  195.           file (including self-extracting files).
  196.  
  197.           Assuming the specified file exists and is valid, you'll get a
  198.           window on the screen which looks something like the following.
  199.           The top line will be highlighted.
  200.  
  201.  
  202.  
  203.  ┌─────────────────────────────────────────────────────────────────────────────┐
  204.  │                                                                             │
  205.  │  Filename       Before  Method  CR   After    Date    Time    CRC    Attr   │
  206.  │  ------------ -------- -------- --- ------- -------- ------ -------- ----   │
  207.  │  ASCAN.C         11591 Imploded 72%    3278  3-15-90  8:29p C48F03BC ---a   │
  208.  │  ASIZE.C         17195 Imploded 76%    4134  3-15-90 12:31a A68B0C17 ---a   │
  209.  │  BBSWEEP.C        6465 Imploded 69%    2031  1-22-90  1:06a 68E0379C ---a   │
  210.  │  CONVERT.C       37526 Imploded 77%    8446  3-14-90 10:21p 2B42D1B8 ---a   │
  211.  │  HEADER.C        11732 Imploded 72%    3342  3-03-90 10:03p E67A9698 ---a   │
  212.  │  IBMDOS.C         2765 Imploded 71%     812  2-17-90  5:39p 4575BF5C ---a   │
  213.  │  MACROS.C          301   Shrunk 31%     207 11-27-89  7:49p 9D902C85 ---a   │
  214.  │  MAKEFILE         1602 Imploded 74%     412  3-06-90  4:51p 9C92811F ---a   │
  215.  │  REDATE.C        17883 Imploded 79%    3710  1-22-90  1:07a 86A021A8 ---a   │
  216.  │  SELF.C           1654 Imploded 66%     567  1-21-90 10:21p 65F69EE4 ---a   │
  217.  │  TEST.C          10242 Imploded 69%    3142  3-15-90  8:29p B53434B5 ---a   │
  218.  │  UNARC.C         15631 Imploded 74%    4136  3-06-90  7:35p 50C371B8 ---a   │
  219.  │  UNIVERSE.C       7370 Imploded 69%    2256  3-14-90  9:21p 91B1CE5F ---a   │
  220.  │  VERSION.C        1551 Imploded 48%     804  2-16-90 11:27p B7B98077 ---a   │
  221.  │  VIEW.C          23958 Imploded 75%    6006  3-06-90  9:38p 5E983326 ---a   │
  222.  │                                                                             │
  223.  │                                                                             │
  224.  │                                                                             │
  225.  └─────────────────────────────────────────────────────────────────────────────┘
  226.      ZIPV 1.21 Copyright 1990 by Gordon Haff and Bit Masons Consulting
  227.  
  228.  
  229.  
  230.  
  231.           ZV 1.21                                                     6
  232.  
  233.  
  234.           You can move the highlight bar arround with the <Up Arrow>, <Down
  235.           Arrow>, <Home>, and <End Keys>,  These do pretty much what you'd
  236.           expect them to do.
  237.  
  238.           You can quit by hitting the <Esc> key.
  239.  
  240.           And now we come to the useful part -- you can view the contents
  241.           of a file by pressing the <Enter> key.
  242.  
  243.           What the <Enter> key does is pipe the contents of the highlighted
  244.           file to Vernon Buerg's LIST program.  PKUNZIP and LIST MUST BE
  245.           PRESENT IN YOUR PATH OR THIS WON'T WORK!!!  Later on, I explain
  246.           how the default command line can be changed in case you've
  247.           renamed LIST or know some other way to do the same thing.  The
  248.           default exec line is:
  249.  
  250.                PKUNZIP -c ~ ` | list /s
  251.  
  252.                where:
  253.  
  254.                     ~ is the name of the archive being viewed
  255.                     ` is the name of the selected file
  256.  
  257.                     These names are filled in dynamically by ZV.
  258.  
  259.  
  260.           But Wait!  There's more! As of Revision 1.20, you can also
  261.           EXTRACT the highlighted file.  Pressing <space> or e will
  262.           extract the highlighted file with the following default command
  263.           line:
  264.  
  265.                PKUNZIP ~ `
  266.  
  267.           As with the viewer, this function requires that PKUNZIP be
  268.           present in your path.
  269.  
  270.  
  271.           ZV 1.21                                                     7
  272.  
  273.  
  274.           2,1  COMSPEC Variable.
  275.           ----------------------
  276.  
  277.           In Order for ZV to work, your COMSPEC environment variable must
  278.           be set.  This variable tells ZV the name and the location of the
  279.           command interpreter to use when it shells to PKUNZIP.  Without a
  280.           COMSPEC variable, ZV will display a file listing, but you will be
  281.           unable to view the contents of files,
  282.  
  283.           To set the COMSPEC variable, include a line such as:
  284.  
  285.                SET COMSPEC=C:\COMMAND.COM
  286.  
  287.           in your AUTOEXEC.BAT file.  The above example is typical for a
  288.           hard disk system but other COMSPEC lines such as:
  289.  
  290.                SET COMSPEC=C:\4DOS.COM       and
  291.                SET COMSPEC=\COMMAND.COM
  292.  
  293.           are also possible.  The former uses J.P. Software's excellent
  294.           4DOS as the shell and the latter uses COMMAND.COM on the current
  295.           logical disk (This would be common for a floppy-only system).
  296.  
  297.           You can view your environment settings at any time
  298.           by typing SET at the DOS prompt.
  299.  
  300.           ZV 1.21                                                     8
  301.  
  302.  
  303.           3.0     Customizing ZV.
  304.           -----------------------
  305.  
  306.           I haven't gone and written a fancy user-friendly configuration
  307.           program for ZV, but you can do some limited modification if you
  308.           have a hex editor of some sort such as Norton's DiskEdit or NU.
  309.           Debug will also do in a pinch for the more adventurous.
  310.  
  311.           MAKE ALL MODIFICATIONS ON A COPY!  ALSO -- make sure that the
  312.           rev of the program matches this documentation since the offsets
  313.           could change between revisions!
  314.  
  315.                Colors:
  316.                -------
  317.  
  318.                     Variable          Offset          Default
  319.                     --------          ------          -------
  320.                     C_NORMAL            0Dh            02h
  321.                     C_INVERSE           0Eh            74h
  322.                     C_INTENSE           0Fh            03h
  323.                     C_BORDER            10h            4Eh
  324.  
  325.           C_BORDER is the attribute for the window border, C_INTENSE for
  326.           the heading in the window, C_INVERSE for the bar.  The color
  327.           values are in standard DOS combined foreground/background format.
  328.           See the Appendix for details on the values you can enter.
  329.  
  330.                Command Lines:
  331.                -------------
  332.  
  333.           The default command line for the viewer is:
  334.  
  335.                PKUNZIP -c ~ ` | list /s
  336.  
  337.           and resides from offset 14h through 31h, padded with spaces
  338.           (20h).  (These offsets, like those for the colors, are relative
  339.           to the beginning of the file at 0000h.)  If you modify this
  340.           command line, be careful not to overflow the space allotted to it
  341.           (there's a NULL (00) on the end) or the results will likely be
  342.           very unpleasant.
  343.  
  344.           The default command line for the Archive extract is:
  345.  
  346.                PKUNZIP ~ `
  347.  
  348.           and resides from offsets 36h through 53h.
  349.  
  350.           ZV 1.21                                                     9
  351.  
  352.  
  353.           4.0     Configuring DF to use ZV:
  354.           --------------------------------
  355.  
  356.           This is also very easy.  Just configure one of the User-defined
  357.           command lines (using DFCONFIG) to read:
  358.  
  359.                ZV ~
  360.  
  361.           When you highlight a file with DF and press the defined function
  362.           key, you will pop directly into the file listing window of ZV
  363.           from which you can select files to view.  No file names to type!
  364.           Isn't that easy?  (It'll be even easier with the SmartViewers in
  365.           DF 4.0.  You'll just setup ZV ~ to act on a ZIP extension.  Then
  366.           just press <Enter> to view the contents of a .ZIP file.)
  367.  
  368.           5.0     Technical and Acknowledgments.
  369.           -----------------------------------
  370.  
  371.           ZV was written using Borland's Turbo Assembler 2.0 and Turbo
  372.           Debugger 2.0, American Cybernetic's Multi-Edit 4.0, and Base Two
  373.           Development's Spontaneous Assembly assembler library.
  374.  
  375.  
  376.           ZV 1.21                                                     10
  377.  
  378.  
  379.           6.0     Other Programs from Gordon Haff and Bit Masons Consulting:
  380.           -----------------------------------------------------------------
  381.  
  382.           Directory Freedom (DF):
  383.  
  384.               Offers users a fast, compact alternative to DOS Shells which
  385.             provides 1) selective file and directory operations; 2) a
  386.             scrollable environment for examining files and directories; 3)
  387.             user-defined keys which can operate upon highlighted files
  388.             (e.g. by defining an editor).  All this in a program which
  389.             takes less than 20KB since it is written in assembler! Easily
  390.             customized through an external configuration program. A "look-
  391.             and-feel" similar to PC Mag's DR, but does much more.
  392.                          Shareware: $20 Registration
  393.                          Latest version: 3.50b (DF350B.ZIP)
  394.             (Coming Soon: 4.00 with SmartViewers and many other new
  395.              features!!)
  396.  
  397.  
  398.           the last word:
  399.  
  400.             'the last word' is a quotations trivia game in which 1 to 4
  401.             players compete against each other and their own high scores in
  402.             identifying the source of quotations and completing partial
  403.             quotes.  Most answers are entered free-form and are matched
  404.             against a set of acceptable responses with a sophisticated
  405.             pattern-recognition algorithm.  'the last word' runs in text
  406.             mode -- including on mono displays -- and offers a high level
  407.             of user configurability.
  408.                          Shareware: $15 Registration
  409.                          Latest version: 1.00  (LWORD100.ZIP)
  410.  
  411.           ND:
  412.  
  413.             Renames a file to the current date.  In other words, if the
  414.             current date were 10-06-90, the file 'FILENAME.QWK' would be
  415.             renamed to 901006.QWK.  The letters A through Z will be
  416.             appended as required to largely eliminate duplications.
  417.             This is a handy program for archiving message packets from
  418.             bulletin boards, for example.
  419.                            Free, copyrighted software (with 'C' source)
  420.                            Latest version: 1.0  (ND.ZIP or NEWDATE.ZIP)
  421.  
  422.  
  423.           These programs and others (Multi-Edit macros for use with Qmail
  424.           Deluxe, for example) are available on many fine bulletin boards.
  425.           The latest releases are always available on Channel One.   If you
  426.           just have to get a copy of one or more of these programs and
  427.           can't find one, however, I can send them out for a nominal media
  428.           and postage charge.
  429.  
  430.           ZV 1.21                                                     11
  431.  
  432.  
  433.           7.0     History:
  434.           ---------------
  435.  
  436.           Rev. 1.21      Fixed another big with <End> and <PgDn> keys when
  437.                          directory less than a screenful
  438.  
  439.           Rev. 1.20      Fixed bug with <End> key when cursor at bottom of
  440.                               directory
  441.                          Added <PgUp> and <PgDn> keys
  442.                          Added Extract Archive function
  443.  
  444.           Rev. 1.11      Fixed problem when SHARE was installed (Thanks to
  445.                          Dr. Herbert Markley for finding this -- the .ZIP
  446.                          file wasn't closed when the EXEC occurred and
  447.                          PKUNZIP, being the well written program that it
  448.                          is, was rightly refusing to have anything to do
  449.                          with the file as a consequence.)
  450.  
  451.           Rev. 1.10      Fixed display problem on monochrome systems
  452.                          Fixed problems with ZIP files < 10Kbytes
  453.  
  454.           Rev. 1.0       Initial Release
  455.  
  456.  
  457.           8.0     Known Limitations:
  458.           -----------------------
  459.  
  460.           (i.e. This is a free program and I got tired of beating out my
  461.           brains over it for the time being.)
  462.  
  463.               o  Truncates the display of files archived with their paths
  464.                  and will not pipe them to the viewer properly if the
  465.                  entire path and filename is greater than 13 characters.
  466.  
  467.               o  For various reasons, the central directory is only
  468.                  looked for in the last 10KB of the file.  *Conceivably*
  469.                  this could cause problems if there were very large ZIP
  470.                  comments.
  471.  
  472.  
  473.           ZV 1.21                                                     12
  474.  
  475.                               APPENDIX A
  476.  
  477.                                 COLORS
  478.  
  479.  
  480.           The color number stored for use in ZV are combined
  481.           foreground/background attributes of the type used by DOS.  This
  482.           combined attribute value is simply the foreground and background
  483.           numbers, as given below, bit-wise OR'd together.  That's a fancy
  484.           way of saying added together for our purposes here.  (Remember
  485.           though that these are hexadecimal numbers.)  For example, yellow
  486.           on a blue background is given by 1Eh (0Eh + 10h).
  487.  
  488.  
  489.           Foreground (normal)  Foreground (intense)         Background
  490.           --------------------------------------------------------------
  491.            0  black              8   dark gray               0   black
  492.            1  blue               9   light blue             10h  blue
  493.            2  green             0Ah  light green            20h  green
  494.            3  cyan              0Bh  light cyan             30h  cyan
  495.            4  red               0Ch  light red              40h  red
  496.            5  magenta           0Dh  light mag.             50h  magenta
  497.            6  brown             0Eh  yellow                 60h  brown
  498.            7  gray              0Fh  intense white          70h  gray