home *** CD-ROM | disk | FTP | other *** search
/ Chip 1994 February / CHIP0294.ISO / digital / best100 / dosutils / gus / gus.doc < prev    next >
Text File  |  1994-02-05  |  63KB  |  1,255 lines

  1.                   ╔══════════════════════════════════════════╗
  2.                   ║       █▀▀▀▀▀▀█  █      █  █▀▀▀▀▀▀█       ║
  3.                   ║       █         █      █  █              ║
  4.                   ║       █   ▀▀██  █     ██  ▀▀▀▀▀▀██       ║
  5.                   ║       █     ██  █     ██  ▄     ██       ║
  6.                   ║       ████████  ████████  ████████       ║
  7.                   ║       ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡       ║
  8.                   ║           General Unpack Shell           ║
  9.                   ║               version 1.80               ║
  10.                   ╚══╤═════════════════════════════════════╤═╝
  11.                      │  Copyright (C) 1994 and written by  │
  12.                      │          Johan Zwiekhorst           │
  13.                      │       - ALL RIGHTS RESERVED -       │
  14.                      └─────────────────────────────────────┘
  15.  
  16.  
  17.                        T A B L E   O F   C O N T E N T S
  18.                        *********************************
  19.  
  20.       1. LEGAL STUFF
  21.          The no-nonsense licence statement
  22.          Warranty
  23.          Contact
  24.          Payment
  25.          What you should have received
  26.  
  27.       2. INTRODUCTION
  28.  
  29.       3. USAGE
  30.          3.1. General Usage under DOS
  31.               SYSTEM REQUIREMENTS
  32.               COMMAND-LINE PARAMETERS
  33.               NOTE
  34.               EXAMPLES
  35.               EXIT CODES
  36.          3.2. Unpacking Mailarchives
  37.          3.3. Identifying Archive Types
  38.  
  39.       4. BUILT-IN DEFINITIONS
  40.          4.1. Built-in Unpacker Definitions
  41.          4.2. How To Define Other Unpackers
  42.  
  43.       5. GUS & OTHER SHELLS
  44.  
  45.       6. HOW GUS IDENTIFIES ARCHIVES
  46.          6.1. Recognition patterns as used by GUS
  47.          6.2. Record layout of ARC/PAK/ARC+
  48.          6.3. How GUS identifies SFX (self-extracting) archives
  49.          6.4. Mandatory order of scanning the patterns
  50.  
  51.       7. RUNTIME MESSAGES
  52.          [A] General information messages
  53.          [B] Warning messages
  54.          [C] Fatal error messages
  55.  
  56.       8. ACKNOWLEDGEMENTS
  57.  
  58.       9. REVISION HISTORY
  59.  
  60. ═══════════════════════════════════════════════════════════════════════════════
  61.       ╒════════════════╕
  62.       │ 1. LEGAL STUFF │
  63.       ╘════════════════╛
  64.  
  65.       This software is copyrighted (C) 1989, 1990, 1991, 1992, 1993, 1994
  66.       and written by Johan Zwiekhorst, hereafter called the Author and Owner.
  67.       All Rights Reserved.
  68.  
  69.       The No-Nonsense Licence Statement
  70.       =================================
  71.       This software and everything enclosed with it are protected by both
  72.       Belgian copyright law and international treaty provisions.
  73.       It is called "freeware".
  74.  
  75.       FREEWARE software may be used, copied and distributed freely for
  76.       NONCOMMERCIAL use only IF:
  77.       ▀▀▀▀▀▀▀▀▀▀▀▀▀
  78.  
  79.               NO FEE IS CHARGED FOR USE, COPYING OR DISTRIBUTION.
  80.  
  81.               IT IS NOT MODIFIED IN ANY WAY.
  82.  
  83.       It may be distributed ONLY in it's original, unmodified compressed
  84.       package file.                                ~~~~~~~~~~
  85.  
  86.       This means you may not add comments to the compressed package file
  87.       (also known as an archive file or simply an archive), nor may you
  88.       delete files from or add files to the archive file, UNLESS YOU HAVE
  89.       A WRITTEN PERMISSION TO DO SO.
  90.  
  91.       Converting the archive file to another compression method or
  92.       another archive file format is allowed, provided that the above
  93.       conditions are met.
  94.  
  95.       The original package as released by me is in Yoshi's LZH archive
  96.       format. (See below for what you should have received.)
  97.       In order to extract the files from an LZH archive under DOS, you
  98.       will need to get the file LHA***.EXE, where '***' stands for the
  99.       version number of the program LHA.  At the time this is written,
  100.       the latest version is 2.13, so look for LHA213.EXE.
  101.       If you are using OS/2, look for Peter Fitzsimmons' LH2 program.
  102.       The latest version of LH2 is 2.22, so look for LH2_222.EXE.
  103.       Note, that recompressing the archive will nearly always result
  104.       in a bigger archive.
  105.  
  106.       The use of FREEWARE software is prohibited in a governmental
  107.       or commercial situation. In these cases, this software must be
  108.       purchased and a Commercial Licence Statement will then be provided
  109.       for.  You may write to the Owner at the address below for more
  110.       information.
  111.  
  112.       Warranty
  113.       ========
  114.       This software is provided AS IS without any warranty, expressed or
  115.       implied, including but not limited to fitness for a particular
  116.       purpose.
  117.       IN NO EVENT SHALL THE AUTHOR/OWNER OF THIS PRODUCT BE LIABLE FOR
  118.       ANY DIRECT OR CONSEQUENTIAL LOSS OR DAMAGES WHICH MAY HAVE ARISEN
  119.       FROM THE USE OF THIS PRODUCT.
  120.       If your local law does not permit any of the statements made above,
  121.       or if you do not agree with any of them yourself, THEN YOU ARE NOT
  122.       LICENCED TO USE THIS PROGRAM!
  123.  
  124.       Contact
  125.       =======
  126.       The Author can be reached via a Bulletin Board System (BBS) and
  127.       electronic mail at the Tripod BBS.
  128.  
  129.       Phone lines:
  130.  
  131.       [due to a move, none are currently available]
  132.  
  133.       Network addresses:
  134.  
  135.       Internet       jz@f118.n292.z2.fidonet.org
  136.       Compuserve     >INTERNET:jz@f118.n292.z2.fidonet.org
  137.       FIDOnet        2:292/118
  138.  
  139.       The Owner can be contacted at the following address:
  140.  
  141.       Johan Zwiekhorst
  142.       Dorpheidestraat 63/B
  143.       3590 DIEPENBEEK (Belgium)
  144.       Phone [not yet available] during office hours, Central European Time.
  145.  
  146.       Payment
  147.       =======
  148.       If you would like to use this product in a commercial or
  149.       governmental situation, please contact the Owner at the address
  150.       above. You will then learn the price of the product and a
  151.       Commercial Licence Statement will be made available to you.
  152.  
  153.       For all others, this product is free, as mentioned before.
  154.       But if you would like to support the Author and encourage him to
  155.       write more useful software, you're welcome to pay some money.
  156.       You may pay whatever you feel the product is worth to you.
  157.       Note that this kind of freeware products is developed entirely in
  158.       the Author's leisure time and he receives absolutely no
  159.       compensation for it, apart from what you as a user would pay him.
  160.  
  161.       If you pay at least U.S. $15 (BEF 500, NLG 30, DEM 25), you will
  162.       receive, when available, a 5.25" or 3.5" floppy diskette with the
  163.       next version.  Please specify which.
  164.       Immediately after receiving your payment, I will send you
  165.       an acknowledgement and a list of the latest versions of all
  166.       freeware I wrote. Payments to the Author can be sent in cash to the
  167.       address mentioned above or transferred to one of the following bank
  168.       accounts:
  169.       Bank Brussel Lambert (Belgium) - account number 335-0076382-89
  170.       Rabobank (Netherlands)         - account number 1059.19.519
  171.  
  172.       ***NOTE THAT THIS IS FOR NON-COMMERCIAL SITUATIONS ONLY!
  173.  
  174.       For all payments made: please specify NAME and VERSION NUMBER of
  175.       the product!
  176.  
  177.  
  178.       What you should have received:
  179.       ==============================
  180.  
  181.       You should have received the file
  182.  
  183.       GUS_180.LZH - (35673 bytes)
  184.  
  185.       with the following contents:
  186.  
  187.       ┌──────────┐  ┌─────┐ ┌─────────────────────────┐
  188.       │ filename │  │bytes│ │ description             │
  189.       └══════════┘  └═════┘ └═════════════════════════┘
  190.       FILE_ID .DIZ     311  Short description for BBS sysops.
  191.       GUS     .DOC   63375  This documentation.
  192.       GUS     .EXE   12381  The program file.           CRC/32 = 4260e561
  193.       GUS_WCFG.PAS    6434  TP source for a program     CRC/32 = 5770b074
  194.                             that writes a new configur-
  195.                             ation into GUS.EXE.
  196.  
  197.       You may also use the program VALIDATE from McAfee Associates for
  198.       the purpose of checking the authenticity of the program file(s).
  199.       It should produce the following:
  200.  
  201.                 File Name:  gus.exe             gus_wcfg.pas
  202.                      Size:  12,381              6,434
  203.                      Date:  2-5-1994            2-5-1994
  204.       File Authentication:
  205.            Check Method 1 - 5154                3AF4
  206.            Check Method 2 - 1007                05C1
  207.  
  208.  
  209.  
  210.       ╒═════════════════╕
  211.       │ 2. INTRODUCTION │
  212.       ╘═════════════════╛
  213.  
  214.       The General Unpack Shell, or GUS, identifies compressed file types
  215.       and calls the correct unpacker in order to extract the files from
  216.       them.
  217.       Its main purpose is, of course, to take work out of YOUR hands.
  218.       You can use GUS with its straight-forward and easy to remember
  219.       commands instead of having to learn a new set of commands each time
  220.       a new archiver sees the daylight.
  221.  
  222.       GUS will also work nicely in automated tasks, where any type of
  223.       archive should be uncompressed, or where a certain file has to be
  224.       added to any given archive.
  225.  
  226.       GUS was made to be command-line compatible with the ARCE.COM
  227.       unpacker program by Vernon Buerg.  This makes it possible for you
  228.       to rename GUS.EXE to ARCE.COM and have it invoked by any program
  229.       that expects both ARCE and SEA's ARC-type compressed files, so that
  230.       such a program will in fact work with any archive format YOU
  231.       choose. Ben Baker's MAKENL is but one example of such a program.
  232.  
  233.       GUS does not require you to fiddle with cumbersome and difficult
  234.       configuration files: it's just a single EXE file.  You copy it into
  235.       your favourite utility directory and you can immediately start
  236.       using it, no hassles at all.
  237.  
  238.  
  239.       ╒══════════╕
  240.       │ 3. USAGE │
  241.       ╘══════════╛
  242.  
  243.       GUS assumes you have located all archiver programs it has to invoke
  244.       somewhere in your system PATH.
  245.       GUS is small and it will only occupy about 21K while shelling out
  246.       to other programs, which should leave more than enough memory for
  247.       those archiver programs.
  248.  
  249.       3.1. General Usage under DOS
  250.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  251.       SYSTEM REQUIREMENTS:
  252.       --------------------
  253.       GUS will run on any IBM PC compatible computer running DOS 3.0 or
  254.       greater, provided that at least 25K plus the memory needed by the
  255.       largest archiver program to invoke is available.
  256.  
  257.       COMMAND-LINE PARAMETERS:
  258.       ------------------------
  259.       As said before, GUS is command-line compatible with ARCE.
  260.       Hence, the general syntax is:
  261.  
  262.       GUS «compressed_filespec» [filespec(s)] [target_path] [switch(es)]
  263.  
  264.       (Entries enclosed within [] are optional, those within « » are
  265.       mandatory.  The [] and « » signs serve to indicate this only and
  266.       should never be typed!)
  267.  
  268.       «compressed_filespec»  ::=  this specifies where to find the
  269.                                   compressed file.  If an extension
  270.                                   is not given, GUS will assume '.*'.
  271.                                   Currently, the following archive types
  272.                                   are supported: ARC and ARC+, ARJ, DWC,
  273.                                   HA, HAP, HPK, HYP, LZH (both LHarc and LHA),
  274.                                   PAK, SQZ, UC2, ZIP and ZOO.
  275.  
  276.       [filespec(s)]          ::=  specifies which files should be
  277.                                   unpacked. You may give more than one
  278.                                   file specification, all of which may
  279.                                   contain wild cards.
  280.  
  281.       [target_path]          ::=  specifies where to locate the unpacked
  282.                                   files.  In order to allow GUS to be as
  283.                                   flexible as possible, the ordering of
  284.                                   the file specifications and the target
  285.                                   path is not important.  You may define
  286.                                   the target path first and then the
  287.                                   files to be extracted.  It is even
  288.                                   allowed to put the target path in the
  289.                                   middle of a number of specifications of
  290.                                   files to extract!  If you give more
  291.                                   than one directory, GUS will ignore all
  292.                                   but the last.
  293.  
  294.       [switch(es)]           ::=  specifies one or more of the following
  295.                                   switches...
  296.          /D     :  Delete archive after successful unpacking
  297.          /I     :  Identify only, don't shell out (see 3.3 below)
  298.          /M     :  unpack Mailarchives only (see 3.2 below)
  299.          /N     :  do Not use embedded path while extracting
  300.                    (for the sake of compatibility with ARCE, /5 may also be
  301.                    used)
  302.          /P     :  Print file(s) on standard output device
  303.          /Q     :  Quiet mode, suppresses shell output
  304.          /R     :  Replace existing files
  305.          /T     :  Test archive integrity
  306.          /V     :  View archive contents
  307.          /Gpswd :  supply password 'pswd' for Garbled archive
  308.  
  309.       All parameters have to separated by at least one blank.  Switches
  310.       may be joined together without spaces, but the '/' character must
  311.       be present for each switch.  GUS does not support the dash '-'
  312.       instead of the slash '/'.
  313.       Options may be given in no matter what case. Only the Delete option
  314.       _has_ to be in uppercase for safety reasons.
  315.  
  316.       NOTE:
  317.       -----
  318.       Consistent with ARCE's behaviour, GUS will create any directories
  319.       contained within an archive if they do not exist.  Both ARCE and GUS
  320.       have a commandline switch with which you can prevent this and have
  321.       them extract to the current directory.
  322.       If you are using the /M (mail archive) switch however, use of the
  323.       /N (No embedded paths) switch is automatically assumed and unpacking
  324.       will always be done in the current directory.
  325.       With /M, the option /D (Delete archive after successful unpacking) is
  326.       also automatically selected.
  327.       The /N switch is equally automatically invoked with /P (print) and /T
  328.       (test).
  329.       Since SEA's XARC program cannot list the directory of an ARC+ (A7+)
  330.       archive, GUS will switch to the program configured for the regular
  331.       ARC type instead for the View Contents command.
  332.  
  333.       EXAMPLES:
  334.       ---------
  335.       1) Extract all files from an archive CFILE.ANY:
  336.          > GUS CFILE.ANY
  337.  
  338.       2) Extract all *.COM and *.EXE files from an archive UTILS.ANY
  339.          into a target directory D:\Utils and replace all existing ones:
  340.          > GUS UTILS.ANY *.COM *.EXE D:\UTILS /R/N
  341.  
  342.       3) A batchfile LA.BAT which will list any text file inside any
  343.          archive:
  344.          LA.BAT: @echo off
  345.                  GUS %1 %2 %3 %4 %5 %6 %7 %8 %9 /P|LIST/S
  346.  
  347.          Then you can use this like:   LA KBUI_200 *.DOC
  348.  
  349.       4) Test the integrity of all archives in the directory F:\Arcs
  350.          > GUS F:\ARCS\* /T
  351.  
  352.       5) Unpack all ZIPfiles PW*.ZIP protected with password JiMmY into
  353.          the directory D:\PWS, not replacing any existing files and using
  354.          any embedded paths:
  355.          > GUS PW*.ZIP D:\PWS /GJiMmY
  356.  
  357.       EXIT CODES:
  358.       -----------
  359.       GUS will yield an errorlevel of 0 if all operations succeeded.
  360.       If something's wrong, it will pass on the errorlevel returned by
  361.       the child program invoked.
  362.       If the child program could not be started, GUS will return
  363.       errorlevel 202 = no such program file found in PATH
  364.                  203 = non-existing directory
  365.                  204 = too many open files (increase FILES=... parameter
  366.                        in your CONFIG.SYS file)
  367.                  205 = access denied
  368.                  206 = invalid handle
  369.                  208 = not enough memory to start the child program
  370.                  210 = invalid environment
  371.                  211 = invalid format
  372.                  218 = no more files
  373.       If the child program could be started but something else is wrong,
  374.       GUS will return
  375.       errorlevel   1 = for all errors not reported in the list below
  376.                  220 = no such (mail) directory
  377.                  221 = no such file(s)
  378.       Note, that GUS will not be able to handle a PATH of more than 255
  379.       characters properly.
  380.  
  381.       3.2. Unpacking Mailarchives
  382.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  383.       If you are a BBS SysOp or a Point connected to a Fidonet Technology
  384.       compatible electronic mail network, you receive mail packets
  385.       compressed and bundled within mailarchives.  You obviously need to
  386.       unpack those mailarchives.
  387.       You can do that in two ways:
  388.  
  389.       a) Have your mailprocessor call GUS to unpack the mailarchives.
  390.  
  391.        + If your mailprocessor allows you to specify which unpacker it
  392.          should invoke to decompress mailarchives, have it call GUS.
  393.          Example for ConfMail:
  394.          > CM IMPORT AREAS.BBS -K -N -F Conf.Imp -A GUS
  395.          This approach has the disadvantage that GUS will create any
  396.          directories embedded in the archive, should they not exist.
  397.          Another disadvantage is, that the mailprocessor is still in memory.
  398.          This occupies a lot more memory than is necessary.
  399.  
  400.        + If your mailprocessor does not allow you to specify which
  401.          unpacker to use, it will most likely expect ARCE or PKXARC/
  402.          PKUNPAK.  Rename GUS.EXE to ARCE.COM or PKXARC.EXE or
  403.          PKUNPAK.EXE, whatever your mailprocessor wants.
  404.          If your mailprocessor wants to use an unpacker that needs a
  405.          specific decompress command (like PAK E Archive), you cannot
  406.          have it call GUS, since GUS would interpret its first
  407.          command-line argument as the archive name.
  408.          Use the method described in item b) to have GUS unpack your
  409.          mailarchives BEFORE your mailprocessor is started.  Since your
  410.          mailprocessor will only see mail packets then and no
  411.          mailarchives, there will be no problem.
  412.  
  413.       b) Have GUS unpack all mailarchives BEFORE you invoke your
  414.          mailprocessor. This is the preferred method.
  415.          You this by starting GUS with the following command-line:
  416.  
  417.          GUS «Inbound_directory» /M
  418.  
  419.          Instead of the archive name, you specify the path to the
  420.          directory where your inbound mail is located.
  421.          Suppose your inbound directory is D:\Opus\NetFiles.  GUS will
  422.          unpack all mailarchives in that directory with the following
  423.          command:
  424.          > GUS D:\OPUS\NETFILES /M
  425.  
  426.          After a mailarchive has been unpacked succesfully, GUS will
  427.          delete it automatically.
  428.          If a mailarchive cannot be unpacked succesfully, then GUS will
  429.          create a subdirectory BADARC.GUS in your inbound directory and
  430.          move that mailarchive to it.  This allows you to inspect the
  431.          problematic mailarchives later on while retaining their original
  432.          name.  Other unpack shells always rename a faulty archive to
  433.          BADARC.001, which makes it very difficult if you would like to
  434.          restore the archive to its original name after you have
  435.          inspected and maybe repaired it.  I didn't like that procedure,
  436.          so I decided to let GUS move problematic archives to a special
  437.          subdirectory instead.  Let me know how you feel.
  438.  
  439.       3.3. Identifying Archive Types
  440.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  441.       With the /I switch, you can have GUS simply report which archive
  442.       type is at hand and do nothing else.
  443.       This switch can be used just to get a list of archive types, like
  444.       this:
  445.       > GUS J:\Outbound\*.MO? /I
  446.  
  447.       Type Archive Filename
  448.       ---- ----------------
  449.       LZH  J:\OUTBOUND\0009FE64.MO1
  450.       ???  J:\OUTBOUND\8FDCB1E2.MO1
  451.       ZIP  J:\OUTBOUND\8FDCB243.MO0
  452.       ARJ  J:\OUTBOUND\FF24FFE9.MO0
  453.       LZH  J:\OUTBOUND\8FDCB241.MO0
  454.  
  455.       GUS yields something like the above list.  The '???' means that GUS
  456.       was unable to determine the archive type, possibly because it isn't
  457.       an archive at all.  In this case, it was a zero-length file.
  458.  
  459.       A much more useful way of using this switch is to determine the
  460.       type of just one archive and act upon that.  For instance, to add a
  461.       file to any archive that comes along.
  462.       If used with /I, GUS will return an errorlevel from 0 to 13,
  463.       indicating the archive type.
  464.  
  465.       Archive Type: Unknown ARC ARC+ ARJ DWC  HA HAP HPK HYP LZH PAK
  466.       Errorlevel  :    0      1   2    3   4   5   6   7   8   9  10
  467.       Archive Type:         SQZ UC2  ZIP ZOO
  468.       Errorlevel  :          11  12   13  14
  469.  
  470.       Example: suppose you want to add a header text LOGO.TXT to ZIP and
  471.       ARJ files, and leave other archive types alone.
  472.       These batchfile instructions will take care of that:
  473.  
  474.         GUS %1 /I
  475.         if not errorlevel 14 if errorlevel 13 goto IsZIP
  476.         if not errorlevel  4 if errorlevel  3 goto IsARJ
  477.         goto Finish
  478.       :IsZIP
  479.         PKZIP -z %1 <LOGO.TXT
  480.         goto Finish
  481.       :IsARJ
  482.         ARJ c -zLOGO.TXT %1
  483.       :Finish
  484.  
  485.       Please be advised that the errorlevel codes assigned to each archive
  486.       type may change! If a new archive type is added to GUS, its extension
  487.       will be merged into the list shown above so that the order of the
  488.       extensions is alphabetical. If you don't like this and would rather see
  489.       new types simply be added to the end of the list, let me know. I will
  490.       comply with your wishes if enough people feel like that.
  491.       At this time, I like to have an alphabetical list and so do most of the
  492.       people I asked about this.
  493.  
  494.  
  495.       ╒═════════════════════════╕
  496.       │ 4. BUILT-IN DEFINITIONS │
  497.       ╘═════════════════════════╛
  498.  
  499.       4.1. Built-In Unpacker Definitions
  500.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  501.       The following unpackers are defined by default within GUS.EXE:
  502.  
  503.       ╔════╤════════════╤═══════╤═══════╤═══════╤═════╤═════╤═════╤════════╗
  504.       ║Type│Program     │Extract│Replace│Display│Test │View │Path │Password║
  505.       ╟────┼────────────┼───────┼───────┼───────┼─────┼─────┼─────┼────────╢
  506.       ║ARC │PKUNPAK .EXE│-n     │-r     │-c     │-t   │-v   │*****│g       ║
  507.       ║A7+ │XARC    .EXE│       │/o     │*****  │*****│*****│*****│/g      ║
  508.       ║ARJ │ARJ     .EXE│e -uy  │e -y   │p      │t    │l    │<x   │─g      ║
  509.       ║DWC │DWC     .EXE│xow    │xw     │p      │t    │v    │r    │g       ║
  510.       ║HA  │HA      .EXE│et     │ety    │*****  │t    │l    │<x   │*****   ║
  511.       ║HAP │PAH     .EXE│e      │e      │*****  │**** │l    │*****│*****   ║
  512.       ║HPK │HPACK   .EXE│x -on  │x -oa  │p      │t    │v    │-da  │-c      ║
  513.       ║HYP │HYPER   .EXE│-x     │-xo    │*****  │*****│-v   │p    │*****   ║
  514.       ║LZH │LHA     .EXE│e /m+  │e /m+c+│p /m+  │t /m+│l    │x+   │*****   ║
  515.       ║PAK │PAK     .EXE│e/WO   │e/WA   │p      │t    │l    │/PATH│/g=     ║
  516.       ║SQZ │SQZ     .EXE│e /o0  │e /o1  │p      │t    │l    │<x   │*****   ║
  517.       ║UC2 │UC      .EXE│E      │E -F   │*****  │T    │V    │-S   │*****   ║
  518.       ║ZIP │PKUNZIP .EXE│-n     │-o     │-c     │-t   │-v   │-d   │-s      ║
  519.       ║ZOO │ZOO     .EXE│e:O    │e:OS   │e:p    │e:N  │lC   │//   │*****   ║
  520.       ╟────┼────────────┼───────┼───────┼───────┼─────┼─────┼─────┼────────╢
  521.       ║ 3  │    12      │  10   │  10   │  10   │ 10  │ 10  │  5  │   5    ║
  522.       ╚════╧════════════╧═══════╧═══════╧═══════╧═════╧═════╧═════╧════════╝
  523.       The numbers above indicate the number of characters provided for
  524.       each string.
  525.  
  526.       Note that Extract, Replace, Display, Test and View are COMMANDS,
  527.       while Path and Password are OPTIONS.  The difference is, that an
  528.       OPTION is always combined with a COMMAND and cannot be used alone.
  529.       If the first character of the Path option is a `<', however, it means
  530.       that the second character should be used to replace the first command
  531.       string character. This is currently only the case with ARJ, HA and
  532.       SQZ, who all need the `e' command to be replaced with `x' in order to
  533.       extract files while using embedded path information.
  534.  
  535.       All spaces means that that particular program does not need any
  536.       parameters for that particular command.
  537.  
  538.       All stars means that that particular program does not support that
  539.       command or that option.
  540.  
  541.       ATTENTION! When encountering an ARC sfx made by SEA's MKSARC program,
  542.       GUS will identify it correctly, but PKUNPAK can't handle this sfx and
  543.       will therefore exit with an error. If you expect to handle a lot of
  544.       MKSARC sfx files, then you'd better replace PKUNPAK by ARC 6.02 in GUS'
  545.       configuration segment.
  546.  
  547.       You may want to redefine some of those built-in definitions for
  548.       various reasons. To use another unpacker program, for instance.
  549.       Or to change some parameters.
  550.  
  551.       4.2. How To Define Other Unpackers
  552.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  553.       There are two ways to modify the built-in definitions.
  554.  
  555.       You can grab a hex editor and change GUS.EXE directly. If you do,
  556.       please take note of the lengths of the strings as listed above in
  557.       section 4.1. All strings occupy the specified number of characters.
  558.       To achieve that, they were padded with spaces where necessary. If you
  559.       edit them, make sure you retain the number of characters and do NOT
  560.       change the funny looking character at the start of each string
  561.       (that's in fact the string length indicator byte). If a particular
  562.       parameter is not supported by a certain unpacker program, then you
  563.       should edit the appropriate field to contain all stars.
  564.  
  565.       If you own a Turbo Pascal compiler v5.0 or later from Borland
  566.       International, you can edit the file GUS_WCG.PAS and re-compile it.
  567.       This small program will update the configuration information at the
  568.       end of GUS.EXE for you. Do *NOT* modify the record layout of that
  569.       information, since GUS will not recognize it anymore if you do.
  570.  
  571.       Future versions of GUS may come with a complete setup program to
  572.       edit and save a new configuration, or have a text configuration file.
  573.       I haven't decided yet which way to go.
  574.  
  575.  
  576.       ╒═══════════════════════╕
  577.       │ 5. GUS & OTHER SHELLS │
  578.       ╘═══════════════════════╛
  579.  
  580.       Since GUS was first created, other authors have joined the club and
  581.       released their own versions of a utility that identifies archive
  582.       types and shells out to the appropriate unpacker programs.
  583.  
  584.       Some of those other shell programs come with source, others don't.
  585.       Some have configuration files, others don't.
  586.       Some are large, others small.
  587.       Only one is GUS and all the others "ain't"! :-)
  588.  
  589.       Why should you use GUS?
  590.  
  591.       1. GUS is small and fast. Other shell programs typically use a lot
  592.          more memory than GUS does.
  593.       2. GUS provides you with all possible commands to allow not only
  594.          automatic use, but also easy DOS command-line usage.
  595.       3. While scanning a file to determine the archive type, the
  596.          identification bytes have to be investigated in a well-defined
  597.          order. Only then, the program will not be fooled by things like
  598.          archives within archives.
  599.          GUS is the only program that does this flawlessly: it will never
  600.          be fooled.
  601.       4. GUS has built-in code especially designed for archives that have
  602.          their identification code at the end of the file.  If such an
  603.          archive has been transmitted by means of a protocol like
  604.          X-modem, some junk may have been appended to the file to make it
  605.          grow to the next 128 byte or even 1 K-byte boundary!
  606.          GUS is the *only* program that will recognize an archive with
  607.          appended junk because it can skip that while scanning.
  608.          (At this time, this is only needed for DWC archives, but you
  609.          never know...)
  610.       5. The HAP&PAH, HPack and DWC archivers require their compressed files
  611.          to have the respective extension '.HAP', 'HPK' and '.DWC' or else
  612.          they won't work with them. GUS knows this and will rename any such
  613.          archive that does not have the proper extension before calling
  614.          the dearchiver program and rename it back to the original name
  615.          afterwards.
  616.       6. Because *I* wrote it! <grin>
  617.  
  618.  
  619.       ╒════════════════════════════════╕
  620.       │ 6. HOW GUS IDENTIFIES ARCHIVES │
  621.       ╘════════════════════════════════╛
  622.  
  623.       GUS recognizes archives by searching for well-defined patterns in the
  624.       archive file. Such a pattern can be from 1 to 5 bytes in length and
  625.       it is extremely important that they be checked in the PROPER ORDER!
  626.       That is what distinguishes GUS from all it's competitors: most
  627.       programs do search for the right patterns (with the exception of the
  628.       pattern for ZOO, which is almost always wrong), but don't do this in
  629.       the proper order. That can result in faulty identifications,
  630.       specifically when encountering archives within archives.
  631.  
  632.       6.1. Recognition patterns as used by GUS
  633.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  634.       ArcType Offset  Pattern         Comment
  635.       ------- ------  ------------    -------------------------------
  636.       ARC     0       0x1A
  637.       ARC+    0       0x1A            Method byte (offset 1) of all
  638.       PAK                             entries needs to be scanned: if
  639.       HYP                             >= 0x0A then PAK;
  640.                                       >= 0x48 then HYP;
  641.                                       == 0x14 then ARC+
  642.                                       Note: PAK can also be recognized
  643.                                       by locating the byte 0xFE at offset
  644.                                       EOF-2, but GUS doesn't use that
  645.                                       because it is less accurate than
  646.                                       scanning the method bytes, which
  647.                                       has to be done anyway for identi-
  648.                                       fying ARC+ and HYP.
  649.                                       For completeness, the record layout
  650.                                       of an ARC archive will be given in
  651.                                       item 2.
  652.       ARJ     0       0x60 0xEA
  653.       HA      0       'HA'            Offset 4 binary ANDed with 0xFC should
  654.                                       yield 0x20. This is an additional check.
  655.       DWC     -3      'DWC'           Offset -3 means the third LAST byte
  656.                                       of the archive file.
  657.                                       It is possible that some junk is
  658.                                       present at the end of an archive,
  659.                                       because of Xmodem transmissions for
  660.                                       example.
  661.                                       In order to avoid GUS not
  662.                                       recognizing the archive because of
  663.                                       this, the last 1028 bytes (or 343
  664.                                       triplets) are read into a buffer
  665.                                       and if that contains the string
  666.                                       'DWC', then we have a DWC archive.
  667.                                       An additional check will be done,
  668.                                       however. The `DWC' string will have
  669.                                       to be the last item in a 27 byte
  670.                                       structure of which the first two
  671.                                       items are ArcStrucSize=27 (2 bytes)
  672.                                       and DirStrucSize=34 (1 byte) before
  673.                                       GUS will accept the file to be a DWC
  674.                                       archive.
  675.       LZH     2       '-l??-'         The '?' specifies a wildcard
  676.                                       character.
  677.       HAP     0       0x91 '3HF'
  678.       HPK     0       'HPAK'
  679.       UC2     0       'UC2' 0x1A
  680.       ZIP     0       'PK' 0x03 0x04
  681.       ZOO     20      0xDC 0xA7 0xC4 0xFD
  682.                                       Most other programs search for the
  683.                                       string 'ZOO' at the front of the
  684.                                       archive, but that is wrong! Only
  685.                                       the ZOO archives made using MS-DOS
  686.                                       would be recognized this way. ZOO
  687.                                       archives made by an Amiga or a
  688.                                       computer running Unix would not
  689.                                       necessarily be recognized this way.
  690.       SQZ     0       'HLSQZ'
  691.  
  692.       6.2. Record layout of ARC/ARC+/PAK
  693.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  694.       var
  695.           ArcHeader : record
  696.                         Marker: Byte;
  697.                         Method: Byte;
  698.                         Name  : array [1..13] of char;
  699.                         Size  : DWord;
  700.                         Stamp : DWord;
  701.                         CRC   : Word;
  702.                         Length: DWord;
  703.                       end;
  704.  
  705.       Procedure to scan all archive entries:
  706.  
  707.       |begin
  708.       | seek(F,0);
  709.       | notOK:=false;
  710.       | YieldARC:=ARC;
  711.       | repeat
  712.       |   {$I-}
  713.       |   blockread(F,ArcHeader,sizeof(ArcHeader));
  714.       |   {$I+}
  715.       |   if IOresult=0
  716.       |    then begin
  717.       |          if ArcHeader.Method>=PAKid
  718.       |           then begin
  719.       |                 notOK:=true;
  720.       |                 YieldARC:=PAK;
  721.       |                 if ArcHeader.Method>=HYPid
  722.       |                  then YieldARC:=HYP
  723.       |                  else if ArcHeader.Method=ARPid
  724.       |                        then YieldARC:=ARP
  725.       |                end
  726.       |           else MoveFilePtr(F,ArcHeader.Size);
  727.       |         end
  728.       |    else notOK:=true
  729.       | until notOK
  730.       |end;
  731.  
  732.       This is of course all in Turbo Pascal, the language in which GUS was
  733.       written. The above are in fact literal excerpts from GUS's source
  734.       code.
  735.  
  736.       6.3. How GUS identifies SFX (self-extracting) archives
  737.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  738.       The basic principle is simple. A self-extracting archive consists of an
  739.       extraction program in EXE form followed by the archive itself as
  740.       appended data.
  741.       The header of an EXE file contains information to determine the size of
  742.       the EXE portion of the file and hence the offset where the appended data
  743.       starts.
  744.       This proved to be true for all archive types, except for SFXs made by
  745.       MKSARC, the ZIP/sfx as used in PKLTE115.EXE and the ZIP/sfx for OS/2.
  746.       GUS has those offset values hardcoded.
  747.  
  748.       6.4. Mandatory order for scanning the patterns
  749.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  750.               1 - SQZ
  751.               2 - ZIP
  752.               3 - HPK
  753.               4 - UC2
  754.               5 - HAP
  755.               6 - ZOO
  756.               7 - LZH
  757.               8 - HA
  758.               9 - ARJ
  759.              10 - DWC
  760.              11 - ARC/PAK/ARC+/HYP
  761.  
  762.       This order is mandatory because it guarantees the greatest chance for
  763.       a correct recognition.
  764.       Every other order would enlarge the chance for a faulty result.
  765.       This is also the reason why the archive specifications are still
  766.       built into GUS and not given in a seperate configuration file (like
  767.       PolyXarc, for example): I still haven't found a good method to have
  768.       GUS determine automatically in which order the patterns have to be
  769.       scanned, if a possibility exists that new patterns would be added to
  770.       the list. I can't expect the users to include new patterns in the
  771.       proper order themselves, can I?
  772.       Therefore, I don't think providing GUS with a CFG file is very
  773.       important at this time. I see no problem for providing a new GUS when
  774.       a new and exciting archiver is released.
  775.  
  776.       That's it folks! If you're curious: the TP source for GUS is about
  777.       870 lines in length. Those lines are `filled' in the same way as
  778.       those of the procedure quoted above.
  779.  
  780.       NOTE: you may use the scanning and identification method as used by
  781.       GUS and as described above in your own programs, but please be so kind
  782.       and don't forget the reference indicating where you got the information!
  783.  
  784.  
  785.       ╒═════════════════════╕
  786.       │ 7. RUNTIME MESSAGES │
  787.       ╘═════════════════════╛
  788.  
  789.       GUS may produce a number of messages while it's working.
  790.       I will list all messages below, with an explanation what's wrong.
  791.  
  792.       [A] General information messages
  793.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  794.       MESSAGE: Child program returns exit code #
  795.       -> this message is given when the invoked unpacker program returns
  796.          control to GUS.  It shows the errorlevel returned by the
  797.          unpacker program.  The "#" will be replaced by the actual
  798.          exit code.
  799.  
  800.       [CHILD]: «unpacker_commandline»
  801.       -> this is shown in Quiet mode (/Q switch) instead of the
  802.          archiver's screen output.  The «unpacker_commandline» will be
  803.          replaced by just that.
  804.  
  805.       Extract: ALL files (XARC cannot extract specific files)
  806.       -> this message is shown when the first four characters of the
  807.          unpacker program definition string are "XARC".  Any files to
  808.          extract specified on the command-line will be ignored.
  809.  
  810.  
  811.       [B] Warning messages
  812.       ~~~~~~~~~~~~~~~~~~~~
  813.       WARNING: multiple target directories defined -- will use the LAST one!
  814.       -> you have defined more than one target path on the command-line.
  815.          GUS warns you that it will ignore all paths but the last.
  816.  
  817.       WARNING: you need to use /D (capital!) to have the unpacked archive
  818.                deleted.
  819.       -> you have specified "/d" in lower case. For security reasons, GUS
  820.          will only accept a capital D for the Delete switch.
  821.  
  822.       WARNING: unknown switch /X ignored
  823.       -> you have specified a switch that GUS doesn't know.  In the above
  824.          warning message, the "X" will be replaced by the actual
  825.          character (converted to upper case) that you used.
  826.          GUS will continue but ignores this unknown switch.
  827.  
  828.       WARNING: a slash by itself is not a valid option -- ignored
  829.       -> you have typed a slash "/" followed by a space or an end-of-line.
  830.          GUS will continue and ignore this.
  831.  
  832.       WARNING: unknown parameter #9 «X» ignored
  833.       -> you have typed something on the command-line that GUS can't
  834.          decipher.  The actual word you typed will be inserted instead of
  835.          "X" in the above message, and the number of that parameter on
  836.          the commandline will be shown instead of the "9" above.
  837.  
  838.       WARNING: unable to determine archive type due to error
  839.                while opening file
  840.       -> for some reason, GUS can't open the file it has to investigate.
  841.          Bummer! GUS will simply skip it and continue with the next one, if
  842.          any.
  843.  
  844.       WARNING: can't open NUL device -- Quiet command ignored
  845.       -> this occurs most often if the /Q (Quiet) command is used and when
  846.          one or more TSRs were loaded with their output redirected to NUL.
  847.          This yields a DOS sharing violation error, hence this message from
  848.          GUS.
  849.  
  850.       WARNING: moving bad archive HHHHHHHH.XX9 to X:\Inbound\BADARC.GUS\
  851.       -> in mail unpack mode (/M switch), GUS was unable to unpack an
  852.          archive and warns you that it will be moved to the BADARC.GUS
  853.          subdirectory that GUS creates in the mail inbound directory.
  854.          The actual name of the bad archive will be inserted in the
  855.          message instead of "HHHHHHHH.XX9" and "X:\Inbound" will be
  856.          replaced by the path to your mail inbound directory.
  857.  
  858.       WARNING: switching to ARC type program for directory of A7+ archive
  859.       -> if the program XARC is configured for handling A7+, GUS will
  860.          switch to the archiver program configured for the ARC type for
  861.          viewing the archive contents (directory), since XARC has no
  862.          command to do it and both PKUNPAK and SEA's ARC 6.02 will list
  863.          the directory of an ARC+ archive fine.
  864.  
  865.       WARNING: unsupported command -- will do normal extract instead
  866.       -> you tried to perform an action not supported by the particular
  867.          archiver defined within GUS (i.e., issue a /T [test] command
  868.          with the HYPER archiver program).
  869.          GUS warns you it will ignore that command and do a normal
  870.          extract instead.
  871.  
  872.       WARNING: XXX type cannot be unpacked into embedded directories!
  873.       -> the unpacker program has no option to enable using embedded
  874.          directories or creating them, so all unpacking will be done
  875.          into the current directory, since that is the only way.
  876.  
  877.       WARNING: XXX type cannot be garbled - ignoring password...
  878.       -> you supplied an extraction password for an archive whose
  879.          unpacker program does not support password-protection.
  880.          GUS will continue the command while ignoring the /G switch.
  881.          The "XXX" will be replaced by the actual archive type detected.
  882.  
  883.       [C] Fatal error messages
  884.       ~~~~~~~~~~~~~~~~~~~~~~~~
  885.       >ERROR<: cannot read configuration information!
  886.       MESSAGE: aborting with exit code 255...
  887.       -> GUS complains it can't find the configuration information at the
  888.          back of it's EXE file.  This means something is terribly wrong
  889.          with that EXE file.  You better delete it and get the original
  890.          release archive unpacked again!  (You *did* save that one,
  891.          didn't you?)
  892.  
  893.       >ERROR<: cannot create new filename for rename or move!
  894.       -> while trying to rename (like when an archiver need a fixed
  895.          extension) or move (like when a mailarchive couldn't be unpacked)
  896.          a file, GUS increments the filename (in case of a fixed extension)
  897.          or the extension (in case of a bad mailarchive) when it at first
  898.          doesn't succeed with the rename or move. If the filename or
  899.          extension cannot be incremented anymore and no other options are
  900.          left, GUS issues the above error message.
  901.  
  902.       >ERROR<: cannot erase unpacked archive!
  903.       -> in mail unpack mode (/M switch) or if the Delete option (/D switch)
  904.          was used, GUS is unable to delete the archive after it has been
  905.          unpacked successfully.
  906.          This more than likely means that the archive was marked
  907.          Read/Only.  You will have to unlock and delete it manually.
  908.          As mailarchives are created fresh upon receipt, it is very
  909.          unlikely that they would be marked R/O.
  910.  
  911.       >ERROR<: can't rename fixed extension back to original, leaving as is...
  912.       -> GUS had to rename an archive to a name with the fixed extension
  913.          required by archivers like DWC, HAP or HPACK and now it can't rename
  914.          the file back to the original name. This can normally only happen
  915.          in a multitasking environment, for instance when the archive file
  916.          was renamed, moved or deleted before GUS could rename it back.
  917.          GUS issues this error message and leaves the file as it was.
  918.  
  919.       >ERROR<: DOS couldn't execute «XXX» due to: YYY
  920.       -> GUS was unable to load and execute the unpacker program.
  921.          The path and name of that unpacker will be inserted in the error
  922.          message instead of "XXX" and the reason will be shown instead of
  923.          "YYY".  That reason will be one of 9 possible problems
  924.          described in section 3.1. General Usage under DOS, EXIT CODES.
  925.          If the error code returned by DOS should be unknown to GUS, it
  926.          will display "DOS ERROR" followed by the error number instead.
  927.  
  928.       >ERROR<: error locating directory XXX
  929.                will unpack in current directory.
  930.       -> You specified a target directory GUS was unable to find.  The
  931.          target path specification will be ignored and the unpacking will
  932.          be done in the current directory.
  933.  
  934.       >ERROR<: «XXX» is no archive file or a type unkown to GUS!
  935.       -> GUS encountered a file that is not one of the known archive
  936.          types.  GUS will continue with the next file, if there is one.
  937.          "XXX" will be replaced by the actual archive name.
  938.  
  939.       >ERROR<: no such file(s)!
  940.       -> GUS was started with an archive filename specification, but no
  941.          such file could be found.  GUS will abort with errorlevel 221.
  942.  
  943.       >ERROR<: no such mail directory!
  944.       -> you specified a mail inbound directory (/M switch) that GUS was
  945.          unable to locate.  GUS will end with errorlevel 220.
  946.  
  947.  
  948.       ╒═════════════════════╕
  949.       │ 8. ACKNOWLEDGEMENTS │
  950.       ╘═════════════════════╛
  951.  
  952.     + PKUNPAK  FAST!  Archive Extract Utility  Version 3.61  08-02-88
  953.       Copyright (c) 1986-1988 PKWARE Inc. All Rights Reserved.
  954.  
  955.     + PKUNZIP (R)    FAST!    Extract Utility    Version 2.04g  02-01-93
  956.       Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware Version
  957.       PKUNZIP Reg. U.S. Pat. and Tm. Off.
  958.  
  959.     + XARC - to decompress a standard ARC Format Archive, Ver 7.1,
  960.       October, 1990
  961.       Copyright 1990 by System Enhancement Associates, Inc.;
  962.       ALL RIGHTS RESERVED
  963.  
  964.     + ARJ 2.39d PRE-RELEASE Copyright (c) 1990-93 Robert K Jung. Mar 06 1993
  965.       All Rights Reserved.  U.S. Patent No. 5,140,321 and patent pending.
  966.  
  967.     + DWC - Archive utility, Release 5.10, Created 3/07/90
  968.       (C) Copyright 1986-90 by Dean W. Cooper; All rights reserved.
  969.  
  970.     + HA 0.98 Copyright (c) 1993 Harri Hirvola
  971.  
  972.     + Hamarsoft (R) Hap&Pah TM 3.00
  973.       Copyright (C) 1992 By Harald Feldmann.
  974.       Publicly Distributed evaluation copy.
  975.  
  976.     + HPACK - The multi-system archiver Version 0.78a0 (shareware version)
  977.       For Amiga, Archimedes, Macintosh, MSDOS, OS/2, and UNIX
  978.       Copyright (c) Peter Gutmann 1989 - 1992.  Release date: 1 Sept 1992
  979.  
  980.     + Hyper - Pack Utility 2.5
  981.       Copyright (c) 1989,1990 P. Sawatzki and K.P. Nischke
  982.  
  983.     + LHA version 2.55b   Copyright (c) Haruyasu Yoshizaki, 1988-92
  984.  
  985.     + Pak 2.51 Copyright 1988-90 NoGate Consulting
  986.  
  987.     + SQZ -- Squeeze It(1.08.3), Jan 24 1993, Copyright J I Hammarberg
  988.  
  989.     + ░███   ░███  ░████      UltraCompressor II (tm)
  990.      ░█  ░█   ░█   ░█  ░█     "The new way of archiving."
  991.      ░█████   ░█   ░████  -NL "Fast, reliable and superior compression."
  992.      ░█  ░█   ░█   ░█ ──────────────────────────────────────────────────
  993.      ░█  ░█  ░███  ░█ (C) Copyright 1994, Ad Infinitum Programs,
  994.                        all rights reserved
  995.  
  996.     + Zoo archiver, Version 2.10 (1991/07/09 02:10:34)
  997.       (C) Copyright 1991 Rahul Dhesi -- Noncommercial use permitted
  998.  
  999.     + ARCE Copyright (c) 1986-91 Vernon D. Buerg.
  1000.       Extract ARC files, Version 4.0g, 4/12/91. All rights reserved.
  1001.  
  1002.     + Conference Mail - Revision: 4.07 by Bob Hartman, FidoNet Node 132/101
  1003.       (C) Copyright 1986, 1987 by Spark Software Inc. All rights reserved.
  1004.  
  1005.  
  1006.       ╒═════════════════════╕
  1007.       │ 9. REVISION HISTORY │
  1008.       ╘═════════════════════╛
  1009.  
  1010.       Ver.   Comment
  1011.       ~~~~   ~~~~~~~
  1012.       1.80 - Supported the new Dutch archiver UltraCompressor II (UC2).
  1013.              It performs consistently better than either PKZIP or ARJ, but HA
  1014.              and HPACK are still the best compressors around (albeit very
  1015.              slow).
  1016.            - Added the '/V' (View archive contents) command. Originally, I
  1017.              wanted to implement my own archive lister. However, since I still
  1018.              don't have the exact layout for a couple of archive types, I
  1019.              didn't want to keep you waiting any longer and provided the lister
  1020.              by shelling out to the appropriate archiver.
  1021.            - The GUS help screen will now also be shown when the user types
  1022.              GUS /?, GUS -?, GUS /h, GUS -h, GUS /H or GUS -H.
  1023.              Suggested by Hans Siemons (2:512/149).
  1024.            - If the drive is full (0 bytes free), GUS is unable to move
  1025.              a bad mailarchive away. GUS v1.70 would check the drive space
  1026.              and abort the move if less than 32 bytes would be free.
  1027.              32 bytes is indeed what's needed to create a new directory entry,
  1028.              but unfortunately this doesn't help much since DOS always needs
  1029.              the size of one cluster to allocate new space.
  1030.              This version of GUS will therefore check if at least the size of
  1031.              one cluster (or 256 bytes for HPFS volumes) is free.
  1032.              Error reported by Peter Smink (2:285/1).
  1033.            - GUS file /I will yield errorlevel 221 if the file doesn't exist,
  1034.              instead of errorlevel 1 reported by the previous version which was
  1035.              confusing (since it could also mean GUS found an ARC archive).
  1036.              Changed two errorlevels:
  1037.              ERROR                   ErrLev v1.70  ErrLev NOW
  1038.              ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^  ^^^^^^^^^^
  1039.              No Such Mail Directory! 0             220
  1040.              No Such File(s)!        1             221
  1041.              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1042.              Problem reported by Kianusch Sayah-Karadji (2:310/3.80).
  1043.            - Just in case you were wondering: I'm using Borlands BPwO v7.0
  1044.              these days for compiling GUS. No, the sourcecode for GUS doesn't
  1045.              contain any OOP. I wanted to keep GUS small and OOP has a tendency
  1046.              to blow the size of EXE files to huge proportions.
  1047.  
  1048.       1.70 - Added support for the Dutch HAP archive format, which compresses
  1049.              at least 10% better than PKZIP v2.04.
  1050.            - Added support for the Finnish HA archiver, which beats PKZIP
  1051.              v2.04 by more than 20%!
  1052.            - Added the "/D" or Delete option.
  1053.            - Added detection of SFX (self-extracting) archives.
  1054.              GUS will recognize all EXE variants of the known archive types.
  1055.              Note: GUS can't handle COM self-extractors made by LHarc 1.xx,
  1056.              only the EXE sfx version.
  1057.            - If the drive is full (0 bytes free), GUS is unable to move
  1058.              a bad mailarchive away. It would take quite some time before
  1059.              GUS would give up trying, though. Fixed: GUS will check
  1060.              the drive space and abort the move if less than 32 bytes are
  1061.              free. (32 bytes is what's needed to create a new directory entry.)
  1062.            - If a file could not be opened for the purpose of determining
  1063.              the archive type, a runtime error 103 resulted. Fixed.
  1064.              Added a message: «WARNING: unable to determine archive type due
  1065.              to error while opening file».
  1066.            - Some people experienced strange `runtime 162' errors.
  1067.              Here's what happened...
  1068.              GUS tried to open the NUL device and create it. Some environments
  1069.              may have objected to that.
  1070.              I changed the code so that the NUL device is opened for writing
  1071.              only (no creation) and only if the /Q option is used, not always
  1072.              like before.
  1073.              This still caused some systems to yield that runtime error, so I
  1074.              added an error check and disabled the Quiet mode in case the NUL
  1075.              device cannot be opened. That should solve the `runtime 162'
  1076.              problem once and for all...
  1077.              Added a message: «WARNING: can't open NUL device -- Quiet command
  1078.              ignored».
  1079.              (This problem appeared mostly with systems that loaded TSRs and
  1080.              redirected their output to the NUL device. That causes DOS to
  1081.              open but never close the NUL device, so when GUS tries to open
  1082.              it, a sharing violation (runtime 162) occurs.)
  1083.              Thanks to Wim Van Sebroeck, 292/862 and Bert Hubert, 2:281/506.40
  1084.              for assisting me in finding a fix for this.
  1085.  
  1086.       1.61 - Fixed a bug which caused GUS to use the wrong archive name
  1087.              when operating with an archiver that requires a fixed archive
  1088.              extension (DWC and HPK at this time).
  1089.  
  1090.       1.60 - Added support for the HPACK archiver from Peter Gutmann, which
  1091.              makes the absolutely smallest archives at this time.
  1092.            - Added support for the Swedish SQZ archiver, which compresses
  1093.              better than ARJ 2.30 or the new PKZIP 1.93a!
  1094.            - Previously, the first three archive types were: ARC (#1), ARJ
  1095.              (#2) and ARC+ (#3). From now on, ARC+ will be #2 and ARJ #3.
  1096.              This is more logical. (The reason for the previous order was
  1097.              that GUS uses the abbreviation ARp internally for ARC+, and
  1098.              ARp comes after ARJ alphabetically.)
  1099.            - Due to a string length mismatch, GUS couldn't tell whether
  1100.              UsePath or UsePassword options were supported or not. The
  1101.              UsePath problem was reported by Wim Van Sebroeck (2:292/862)
  1102.              and by checking that, I discovered that the same was true for
  1103.              the UsePassword option. Corrected.
  1104.            - Added code to allow the Path option to replace a command
  1105.              instead of being added to it. (Indicated by `<' as the first
  1106.              character in the Path option in GUS_WCFG.PAS)
  1107.              Only needed for ARJ and SQZ at this time. (The previously used
  1108.              `e -jf' for ARJ doesn't seem to work equal to `x', so that was
  1109.              changed.)
  1110.            - GUS `forgot' about the specification indicating which files had
  1111.              to be extracted, once an ARC+ type archive had been worked on.
  1112.              Reported by Wim Van Sebroeck (2:292/862) and fixed.
  1113.            - If the specified target directory ended with a backslash (\),
  1114.              GUS wouldn't recognize it as the target directory. Reported by
  1115.              Wim Van Sebroeck (2:292/862) and fixed.
  1116.            - Extract command for ARJ changed from `e -n' to `e -uy' and
  1117.              modified some other archiver parameters in order to make the
  1118.              behaviour of various archiver programs more homogenious.
  1119.              GUS without /R option:
  1120.              (1) XARC and HYPER will ask you if they should overwrite older
  1121.                  files. Unfortunately, these programs have no command
  1122.                  options to work in batchmode and avoid this.
  1123.              (2) HPACK will never overwrite older files because it doesn't
  1124.                  have an option for this.
  1125.              (3) all other archivers will overwrite older files and skip
  1126.                  the rest.
  1127.              GUS with /R will cause existing files always to be
  1128.              overwritten.
  1129.            - If someone would combine several real commands on the GUS
  1130.              commandline, the effects might not be what one desires.
  1131.              Example: GUS * /T /R would start unpacking when one would
  1132.              expect it to ignore the replace command and do a test only.
  1133.              So I have changed the behaviour. The /T command now has priority
  1134.              over all other commands. This means that if you specify multiple
  1135.              commands, the /T (test) command will be executed and all others
  1136.              ignored. If you specify /P and /R, the /P has a higher priority
  1137.              and will be executed. The /R will be ignored. The priority of a
  1138.              command increases if it can do less damage. So the priority order
  1139.              for the GUS commands is in descending order: /I /T /P /R
  1140.              (remember: the other switches are options, not commands!).
  1141.              This problem was discovered after a tip by Alex Cleynhens
  1142.              (2:292/500).
  1143.            - Additional check for DWC archives. Apart from the string `DWC'
  1144.              in the last 1K of the file, it is now required that this string
  1145.              is the last item in a 27 byte structure for the file to be
  1146.              identified as a DWC archive.
  1147.            - GUS reported a runtime error when trying to rename an archive to
  1148.              a fixed extension and if the new name existed already. Reported
  1149.              by Wim Van Sebroeck (2:292/862). Fixed: the name is now
  1150.              incremented. Modified the routine which moves bad mailarchives
  1151.              to the BADARC.GUS subdirectory as well: if a file with the
  1152.              same name already exists in the BADARC.GUS subdirectory, the
  1153.              extension of the file to be moved is incremented.
  1154.            - GUS had a problem if the target directory was a root directory.
  1155.              In that case, it specified only the drive instead of the root
  1156.              directory. Reported by Wim Van Sebroeck (2:292/862). Fixed.
  1157.            - HPACK seems to require that its archives have a fixed extension
  1158.              of .HPK (like DWC does). GUS directory /M /T doesn't move bad
  1159.              archives into the BAD_ARC.GUS directory. Reported by Peter Smink
  1160.              (2:285/1). Fixed.
  1161.            - Various changes to the documentation.
  1162.  
  1163.       1.50 - Added the /N (/5) switch to prevent GUS using or creating
  1164.              paths embedded within archives.
  1165.            - Made this switch automatic while working with mail archives
  1166.              (/M).  Thanks to John Lots (2:512/36.3@fidonet.org) and Eef
  1167.              Hartman (2:281/603.5) for suggesting this and detecting the
  1168.              problem with this in GUS 1.40.
  1169.              /N is now also automatically invoked with /P and /T.
  1170.            - Changed the way the configuration information is stored a bit,
  1171.              since there was a useless amount of space being reserved for
  1172.              the "Unknown" type, which of course shouldn't have been saved.
  1173.            - Fixed a minor problem which caused a runtime error when
  1174.              GUS.EXE was given a read/only attribute.  Thanks to Rob
  1175.              Essers (2:283/406.2) for reporting this.
  1176.            - Cleaned up the batchfile listing in section 3.3 a bit.
  1177.              Thanks to Roelof Heuvel (27:3331/5000@signet.ftn) for the
  1178.              suggestion.
  1179.            - Fixed a minor problem which caused GUS to not append '.*'
  1180.              to a filename given without an extension when the pathame
  1181.              would contain a dot somewhere.  Thanks to Hans Siemons
  1182.              (2:285/214@fidonet.org) for reporting it.
  1183.            - Because of a space inserted between the appropriate switch to
  1184.              supply a password to an unarchiver and the actual password it-
  1185.              self, encrypted archives could never be unpacked. This is now
  1186.              fixed.
  1187.            - Made minor modifications for PKUNZIP 2.00, due to some changes
  1188.              in the way that one handles its command options.
  1189.            - The `use path' option was always supplied with the ZOO unpack
  1190.              commands. Corrected.
  1191.  
  1192.       1.40 - Removed MDCD archive support again, since nobody was likely
  1193.              to use it -- unless you're looking for the worst performing
  1194.              archiver ever, of course.
  1195.            - Added support for the new LHA version 2 archiver from Yoshi,
  1196.              which succeeds LHARC.  The previous version of GUS could
  1197.              already handle the new compression, but I didn't expect the
  1198.              name of the program to be changed.
  1199.            - Added support for the ARJ archiver program from Robert K.
  1200.              Jung, which yields nearly always the best compression and
  1201.              has a lot of features.
  1202.            - Added support for the HYPER archiver program from Germany,
  1203.              which seems to outperform every other archiver on 600..800K
  1204.              logfiles ONLY.  Weird.
  1205.            - Added support for ARCfiles made by the new ARC version 7
  1206.              compressor from SEA.  At this time, only one public domain
  1207.              extractor is available, which unfortunately lacks almost
  1208.              every feature GUS has to offer.
  1209.              My thanks to Donn Bly (1:236/7@fidonet.org) and Jeffrey
  1210.              Nonken (1:273/715@fidonet.org) for providing me with all the
  1211.              information on the ARC7+ archive format and the XARC
  1212.              program.
  1213.            - GUS is now fully commandline compatible with Vernon Buerg's
  1214.              ARCE program.  All of ARCE's switches are supported - except
  1215.              for /5, which prevents ARCE from creating subdirectories
  1216.              contained within ARCfile entries.
  1217.            - GUS provides two extra options: /I will identify an archive
  1218.              type by means of the exitcode (errorlevel) and /M will
  1219.              unpack and delete mailarchives in Fidonet Technology
  1220.              Networks.
  1221.            - BUGFIXES:
  1222.              * cleaned up handling zero-length and read/only files.
  1223.                From now on, GUS won't abort with a runtime error on
  1224.                those. 
  1225.              * you could only specify one single file to extract on GUS's
  1226.                commandline, although the help screen and manual suggested
  1227.                you could give more than one filespec.
  1228.                That's also corrected now, so you can indeed specify
  1229.                multiple files.
  1230.            - OTHER IMPROVEMENTS:
  1231.              * the code which detects the archive type has been completely
  1232.                re-written and now is a *lot* faster than before!
  1233.  
  1234.       1.31 - This version was never released, but mentioned in the
  1235.              documentation of the ARCA*Simulator v2.31 (ASIM_231.LZH).
  1236.  
  1237.       1.30 - This version was never released, but mentioned in the "Latest
  1238.              Software Versions" column of the FidoNews magazine.
  1239.  
  1240.       1.20M  Added MDCD archives, corrected an error which made GUS not
  1241.              recognize uncompressed file entries in an LZH archive, made sure
  1242.              the new compression method of PAK is supported, added features to
  1243.              allow selection of files and target directory for unpacking.
  1244.              This is a maintenance release, hence the 'M' behind the version
  1245.              number.
  1246.  
  1247.       1.10 - Added LZH archives, and changed the way DWC archives are
  1248.              identified in order to identify them even if up to 1K of rubbish
  1249.              is appended to the end of a DWC archive. This is useful for DWC
  1250.              archives which have been transferred by means of an Xmodem
  1251.              protocol.
  1252.  
  1253.       1.00 - Base version.  (Turbo Pascal 5.0)
  1254. _______________________________________________________________________(eof)__
  1255.