home *** CD-ROM | disk | FTP | other *** search
/ OK PC / OKPC05-Legends_of_Valour.img / LHA.DOC < prev    next >
Text File  |  1991-08-02  |  32KB  |  884 lines

  1. ------------------------------------------------------------------------
  2.                        Manual for LHA Version 2.13
  3.  
  4.                                                  Ver 2.13  July 20, 1991
  5. ------------------------------------------------------------------------
  6.                              NIFTY-Serve  SDI00506    HARUYASU YOSHIZAKI
  7.                              ASCII-pcs    pcs02846    Yoshi
  8.                              PC-VAN       FEM12376
  9. ------------------------------------------------------------------------
  10.  
  11.      This is a manual for the public release of LHA.EXE.v 2.13. LHA
  12.      is an upward compatible and improved version of LH Ver 1.13C.
  13.      Since Microsoft's DOS 5.0 now has an interior command LH (for
  14.      Load High), the name has been changed from LH.EXE to LHA.EXE.
  15.  
  16.  
  17. 0.  To begin with
  18. -----------------
  19.  
  20.      This is a revised version of LH113c.EXE, an archiver which was
  21.      rather slow in execution but tight in compression rate.  I am
  22.      grateful for the support of LH113c's users both in Japan where
  23.      the .LZH file is a standard archived file name and in other
  24.      countries where .LZH has become well-known and used often.  I
  25.      have been  working on this new version for two years since the
  26.      last release of LH113c.EXE.  I am now glad to announce the re-
  27.      lease of LHA. I am constantly upgrading upon user's report on
  28.      bugs and on new requests.
  29.  
  30.  
  31.      LHA differs from LH113c:
  32.      -----------------------
  33.  
  34.      LHA is better than LH Ver 1.13 in compression rate, especially
  35.      with large files.  There are a few exceptions if using rather
  36.      small files.  (Under 1 Kb.)  LHA is faster than LH113c in de-
  37.      compressing, with new static Huffman coding, compared with the
  38.      older dynamic Huffman.  The speed of compression is not as fast
  39.      as I was expecting.  <Sigh>
  40.  
  41.      LHA needs more memory than LH113c did.  If there is not enough
  42.      for LHA to work, it may have looser compression rate, although
  43.      it tries to continue execution.  LHA is upward compatible with
  44.      LH113c.  But LH113c is not completely compatible with the LHA
  45.      format.  Please switch from LH113c to LHA as soon as you can.
  46.      With the "/o" option, you can make archives dearchivable by
  47.      LHarc Ver 1.xx - otherwise LHarc will complain for "unknown
  48.      method".
  49.  
  50.      LHA is distributed as a free program with copyright reserved.
  51.      There is no restriction for the use within private corporations
  52.      or the use for governmental agencies.  Users must be respon-
  53.      sible for the use of facilities of the software, especially of
  54.      the auto ! batch file (Often called a "Telop file).  The soft-
  55.      ware is distributed as is.  I am not liable for any damage
  56.      caused by the use of this software.  For commercial use, please
  57.      refer to our distribution policy.
  58.  
  59.      You can now proceed to read the complete description of com-
  60.      mands and options.  However, if you are not familiar with what
  61.      an archiver is, please refer to the introductory note LHA.HLP
  62.      written especially for LHA.EXE by late Irvin Hoff.
  63.  
  64.  
  65. 1.  Usage
  66. ---------
  67.  
  68.   A.  General Format:
  69.   ==================
  70.  
  71.     LHA <command> [/<option> ARC [[DIR\] [FILE]...]...  [-+012|WDIR]...]
  72.  
  73.  
  74.     <command>: if one is not used, you get the help screen or a list of
  75.                FILE(s).
  76.     <option>:  you may supply one or more of options explained below.
  77.                (needs an  /  or  -  in front, to designate an option)
  78.  
  79.     ARC:       archive name.
  80.     DIR:       base directory name.
  81.     FILE:      File name or full pathname if specified.
  82.     WDIR:      Working Directory name.
  83.  
  84.  
  85.   B.  <command>
  86.   =============
  87.  
  88.    a (Add) compress and add to an archive.
  89.  
  90.      Compress and Add files specified to an archive.  If the named
  91.      archive does not exist, then create one with the name.  LHA
  92.      overwrites any file in the archive by the given file name with
  93.      'a' command.  Compare with 'u' command.
  94.  
  95.      The commands 'a' and 'm' are used to make an archive.
  96.  
  97.      < Example 1 >  LHA a EX *.EXE
  98.  
  99.      LHA makes an archive named EX.LZH from all the files with ex-
  100.      tension 'EXE'.  Extension .LZH is default.
  101.  
  102.  
  103.    u (Update) Compress and Update.
  104.  
  105.      Compress and add files specified to an archive as command 'a'.
  106.      If LHA detects a file with the name same as the one in the
  107.      archive, then LHA selects the new one to add to archive, by
  108.      comparing the time stamp of each.
  109.  
  110.      < Example 2 > LHA u EX *.C
  111.  
  112.      All the FILE(s) with extension '.C' are archived in EX.LZH.
  113.      If you already have an SX.LZH containing a FILE with the same
  114.      name, only the one with newer time stamp is archived.
  115.  
  116.  
  117.    m (Move)
  118.  
  119.      Compress and add to an archive as 'u' command with checking
  120.      time stamps.  The difference is that LHA deletes all the files
  121.      moved into the archive.
  122.  
  123.      < Example 3 > LHA m EX *.C
  124.  
  125.      does  the same as
  126.  
  127.                   LHA u EX *.C
  128.                   del *.C
  129.  
  130.      Watch the second line.  With the /C option, LHA removes all the
  131.      FILE(s) into the ARChive ignoring time stamps.  You may lose
  132.      the one with the older time stamp.
  133.  
  134.  
  135.    f (Freshen)
  136.  
  137.      LHA looks for a FILE with the same name as the FILE in the
  138.      archive.  If it finds one with a newer time stamp, LHA
  139.      rewrites the one in the archive.  'LHA f /c ARC ' will not
  140.      check the time stamp.
  141.  
  142.      < Example 4 > LHA f EX LHA.DOC
  143.  
  144.      You have LHA.DOC compressed and archived in EX.LZH.  You get a
  145.      new LHA.DOC, then you replace the one in the ARChive, also.
  146.  
  147.  
  148.    d (Delete)
  149.  
  150.      LHA deletes a file (or files) in the archive.
  151.     
  152.      < Example 5 > LHA d ex lha.doc
  153.  
  154.      LHA deletes lha.doc in the ARChive ex.LZH.
  155.  
  156.    e (Extract)
  157.  
  158.      LHA extracts FILE(s) from the archive with decompressing.  If
  159.      LHA finds a FILE in the archive with a newer FILE on the same
  160.      DIR and having the same name, it skips that FILE(s).  LHA
  161.      extracts FILE(s) from ARChives made by L113C, namely, those
  162.      with the compression ids -lzs-, -lz4-, -lz5-.
  163.  
  164.      <Example 6 > LHA e EX 
  165.  
  166.      Extracts all the FILE(s) in the archive 'EX.LZH'.
  167.  
  168.      < Example 7 > LHA e EX *.COM
  169.  
  170.      LHA extracts all the files with extension .COM from 'EX.LZH'.
  171.  
  172.  
  173.   x (eXtract) LHA eXtracts compressed FILE with pathnames.
  174.  
  175.      If LHA can not find any path, then it will create directories.
  176.      FILE(s) must be archived with full-pathnames.  LHA restores the
  177.      entire directory structure.  'LHA e /x1m1 ARC' does the same.
  178.  
  179.      < EXample 8 > LHA x EX
  180.  
  181.      Suppose '\BIN\CG86.EXE' were among the FILE(s) in 'EX.LZH'.  LHA
  182.      creates directory '\BIN' if necessary, and extracts 'CG86.EXE'
  183.      there.
  184.  
  185.  
  186.    p (Print) Print FILE on standard out.
  187.  
  188.      LHA prints FILE decompressing from ARC to standard output.
  189.  
  190.      < Example 9 >  LHA  p ex lha.doc
  191.  
  192.      LHA extracts 'LHA.DOC' from 'EX.LZH' and displays it on your
  193.      terminal.
  194.  
  195.      < Example 10 > LHA p EX LHA.DOC > prn
  196.  
  197.      LHA extracts 'LHA.DOC' from 'EX.LZH' and prints it out from
  198.      your printer.
  199.  
  200.  
  201.    l (List)
  202.  
  203.      LHA lists FILE names in the archive on a line.  A FILE with
  204.      pathname will have a mark '+' on the head of the line.  'LHA
  205.      l /x ARC' shows full-pathnames of FILE(s) in ARC, and in 2 lines
  206.      per FILE.  You need not type 'l' to have the list.
  207.  
  208.      <Example 11> LHA LHA213.EXE
  209.  
  210.      LHA assumes command 'l' and shows list of FILE(s) archived FILE
  211.      per line.
  212.  
  213.      < Example 11x > LHA /x LHA213.EXE
  214.  
  215.      You get a similar list but full-pathnames are inserted, and
  216.      each FILE is shown on two lines.
  217.  
  218.      NOTE:  Forward slash '/' is used as the pathname separator.
  219.  
  220.  
  221.    v (View)
  222.  
  223.      'LHA v ARC' is the same with 'LHA l /x ARC'.
  224.  
  225.  
  226.    t (Test)
  227.  
  228.      Check the integrity of ARC, by CRC check.
  229.  
  230.      LHA t LHA.EXE or LHA t LHA213.EXE
  231.  
  232.      will announce the authenticity of the file you own.
  233.  
  234.            LHA t LHA.EXE
  235.  
  236.      "This file seems to be ORIGINAL distributed from H.Yoshi."
  237.  
  238.      LHA.EXE tests itself for you.  This guarantees the version you
  239.      have is not hacked by anyone, though it is not the full guaran-
  240.      tee in the present state of art.  You can't check LHA.EXE if
  241.      you have used executable file compressors such as LZEXE, PKLITE
  242.      or DIET.
  243.  
  244.      < Example 12 > LHA t EX
  245.  
  246.      LHA tests integrity of the FILE(s) in 'EX.LZH'.
  247.  
  248.      < Example 13 > LHA t LHA.EXE
  249.  
  250.      LHA checks if LHA.EXE is the original file distributed.
  251.      
  252.      It has often been asked that files made by LHarc v 1.xx
  253.      fail this test. You cannot test LHARC.exe with this test.
  254.      If you get an answer "file corrupt", don't get panic.
  255.      These files often have extra padding in the back of the file.
  256.  
  257.    s (Self-extract)
  258.  
  259.      LHA makes a Self-Extracting archive from ARC.LZH.  The default
  260.      switch /x0 is assumed when you do not specify.  SFX made with
  261.      the /x0 switch, small model, extracts files on the current
  262.      directory.  You can't activate some programs in the archived
  263.      FILE(s) automatically with small model.  The size of the SFX file
  264.      is smaller than those made with /x1 switch, large model.
  265.  
  266.      The large model SFX has the ability to restore subdirectory
  267.      structures and can automatically start execution from a FILE
  268.      inside the archive.
  269.  
  270.      < Example 14 > LHA s EX
  271.  
  272.      In this case, LHA makes a small model EX.EXE from EX.LZH.
  273.      
  274.      We had many inquiries that LHA does not make SFX file.
  275.      You must first make LZH file by 'a' or 'm' command. Then
  276.      you use 's' command to make it a self-extracting file.
  277.  
  278.  
  279.   C.  </option>
  280.   =============
  281.  
  282.      Each option takes 3 numerical values to define its finer
  283.      actions.  Use 0,1 and 2 to specify.  For some options, the
  284.      values 1 and 2 does the same thing.  You may toggle 0 and 1 by
  285.      '+' and '-" as with LH113c.  You may change switch character
  286.      (option) from  /  to  - if you prefer the '-'.
  287.  
  288.      /x[0|1] (eXtend)
  289.  
  290.  
  291.      LHA uses eXtended FILE names, namely full-pathnames for FILE(s).
  292.  
  293.      You are on the root directory.  Suppose you want to archive the
  294.      FILE '\tc\include\sys\stat.h' in an archive 'ARC.LZH'.  You type
  295.      'LHA a /x1 ARC.LZH \tc\include\sys\stat.h' to store the FILE
  296.      with full-pathname,'\tc\include\sys\stat.h'.  Similarly, you
  297.      have a 2-lined list with full-pathnames with 'l' command.
  298.  
  299.      /p[0|1|2] (Precise)
  300.  
  301.  
  302.      Search file names precisely.
  303.  
  304.      Suppose an ARChive 'TC.LZH' contains both 'STAT.H' and
  305.      'SYS\STAT.H'.  A simple command like 'LHA e TC stat.h' will
  306.      extract both files on the current directory and let one
  307.      override the other.  To avoid such confusion, you can type 'LHA
  308.      e -p TC stat.h' to extract 'STAT.H' only.  While by typing 'LHA
  309.      e -p TC sys\stat.h' you will get 'SYS\STAT.H'.
  310.  
  311.      /c[0|1|2]  (ignore Comparison of time)
  312.  
  313.  
  314.      With commands 'u', 'f', 'e', 'x', LHA ignores the checking of
  315.      time stamps.  With these commands, LHA chooses the newest FILE
  316.      with the same pathname to act on, by default.  This option lets
  317.      LHA ignore the time stamps.
  318.  
  319.  
  320.      /m[0|1|2]  (no Message)
  321.  
  322.      The switch '/m1' let LHA assumes answer 'Y' for all the
  323.      queries. "LHA e /m1 ARC" will extract files in ARC.LZH
  324.      wherever "Y" is typed for the queries "Overwrite? [Y/N]"
  325.      are asked. If there is a file in the directory with the
  326.      same name but with attribute read-only, LHA reports
  327.      'file creation error'. Similarly LHA creates new directory
  328.      if it meets 'Directory DIR does not exit. Create [Y/N]'.
  329.    
  330.      On the other hand, with '/m2' switch LHA acts differently.
  331.      'LHA e /m2 ARC.LZH FILE' dearchives every FILE by choosing
  332.      an unused file extension among 000-999, when LHA finds
  333.      FILE(s) with the same name as in the ARChive.
  334.  
  335.      /a[0|1] (any Attribute)
  336.  
  337.  
  338.      This switch enables LHA to archive FILE(s) with any attributes.
  339.  
  340.      In the process of archiving with default switch /a0, LHA will
  341.      not archive FILE(s) with hidden and system attributes.  FILE(s)
  342.      with read-only attribute is archived with the attribute. With
  343.      this switch on, '/a1', FILE(s) of any attribute are archived
  344.  
  345.      In the process of dearchiving, with /a1, dearchived FILE(s)
  346.      preserve their original attributes. With /a0, you can't
  347.      dearchive files with hidden and system attributes.  Read-only
  348.      FILE(s) are dearchived deprived of their original attribute.
  349.  
  350.      /r[0|1|2] (Recursive)
  351.  
  352.  
  353.      LHA archives and extracts files recursively from subdirect-
  354.      ories.  'Recursively' means LHA searches all FILE(s) from all
  355.      subdirectories under the specified directory if there is any.
  356.  
  357.      There are three different modes for the '/r' switch.
  358.  
  359.      /r0: (non-recursive mode, default)
  360.  
  361.  
  362.      LHA collects files specified by path names only.
  363.  
  364.      /r1:
  365.  
  366.  
  367.      LHA separates the given pathname into a directory name and FILE
  368.      name.  LHA recursively collects FILE(s) with the given name from
  369.      all the directories under the directory specified.
  370.  
  371.      < Example 15 > LHA a /r1 SOURCE.LZH \SOURCE.C\SOURCE\*.H
  372.  
  373.      LHA collects FILE(s) with extension C and H from the directory
  374.      \source and its subdirectories, probably '\SOURCES\SAMPLES\*.C'
  375.      but not '\SOURCE\*.OBJ'.
  376.  
  377.      /r2:
  378.  
  379.  
  380.      LHA recursively collects all the files from all the specified
  381.      subdirectories.  Tree structure of the specified directory is
  382.      archived as it is.
  383.  
  384.      < Example 16 > LHA a /r2x1 a:\*.*
  385.  
  386.  
  387.      NOTE:  LH113c has set /x whenever /r is set in 'e' or 'x'
  388.             commands.  LHA differs from LH113c in that /x is
  389.             not set with /r automatically.
  390.  
  391.      The following questions are the most frequently asked ones:
  392.  
  393.      (1) How do you backup a disk a: ?
  394.  
  395.                         LHA a /r2x1 LZH a:\
  396.  
  397.      (2) Then how do you retrieve all the directories and files on
  398.          b:?
  399.  
  400.                         LHA x ARC.LZH b:\
  401.  
  402.  
  403.      /w[0|1|<Directory Name>] (Work directory)
  404.  
  405.      Specify the directory name where LH makes temporary files.
  406.  
  407.                         LHA a /wd:\  ARC.LZH FILE(s)
  408.  
  409.      set -w switch on.
  410.  
  411.      By default, LHA makes all the temporary files on the directory
  412.      where ARC.LZH is to be made.  It will rename the temporary file
  413.      as ARC.LZH.
  414.  
  415.      LHA makes temporary files on the current directory if no name
  416.      is specified with '/w+'.
  417.  
  418.      When you set Environmental variable 'TMP' this switch is set
  419.      automatically to be 1, and you have the directory set by 'TMP='.
  420.      as your working directory.
  421.  
  422.      The switch helps LHA when you have not enough room in your base
  423.      directory, or when you have a high speed memory device like RAM
  424.      disk or HARD ram.
  425.  
  426.  
  427.  
  428.  
  429.      /t[0|1] (Time stamp)
  430.  
  431.      With command a,u,m,f,d reset time stamp of ARC.lzh according to
  432.      the newest file in the archive.  By default, the time stamp of
  433.      an ARC.LZH is the time when the ARC.LZH is made.
  434.  
  435.  
  436.      /z[0|1|2] (Zero compression)
  437.  
  438.      LHA makes an archive without compressing.
  439.  
  440.      /z1: None of the FILE(s) is compressed
  441.  
  442.      /z2: Compress and archive except for the FILE(s) with exten-
  443.           sions:
  444.  
  445.                .ARC, .LZH, .LZS, .PAK, .ZIP, .ZOO.
  446.  
  447.      /z<extension>:  Do not compress FILE(s) with the specified
  448.      extension.  This switch assumes /z2.  You may use wild card to
  449.      specify, and you may or may not put '.' in front of the exten-
  450.      sion.  With '/zdbf' you don't compress FILE(s) with extension
  451.      '.DBF'.  With '/z' you will not have FILE(s) with no extension
  452.      compressed.  You may specify multiple extensions by writing
  453.      sequentailly:
  454.  
  455.                LHA a /ZCOM /ZERO ARChive.LH *.*.
  456.  
  457.      /o[0|1] (Old compatible compression)
  458.  
  459.      LHA makes an archive compatible with the LH113c format.  Even
  460.      in this case, LHA makes tighter compression than LH113c ver
  461.      1xx.  The header id is automatically set to -h1.
  462.  
  463.      /h[0|1|2] (Header level)
  464.  
  465.      Choice of header level, default is /h0.
  466.  
  467.  
  468.      /i[0|1] (don't Ignore case)
  469.  
  470.      Recognize Upper and Lower cases.  LH(arc)s have common header
  471.      format in other OS's where cases are recognized as distinct.
  472.      This option is prepared for dearchiving archives made by other
  473.      OS'.  In the DOS version of LHA, you can't differentiate upper
  474.      and lower when LHA archives FILE(s) into the archive.  Names
  475.      are all stored in upper case.
  476.  
  477.      /n[0|1|2] (No indicator)
  478.  
  479.      In this version, LHA outputs compressing indicator "ooo....."
  480.      to standard error.  The switch is to suppress this output.
  481.  
  482.      /n1: LHA disables output "ooo....." to indicate its progress.
  483.  
  484.      /n2: LHA disables outputs of filename, compression rates.
  485.  
  486.  
  487.      /l[0|1|2] (Long display ).
  488.  
  489.      LHA outputs filenames in different formats when LHA archives
  490.      and dearchives.
  491.  
  492.       /l0 : FILE names only.
  493.       /l1 : Full-pathnames stored or to be stored in archive in 2 lines.
  494.       /l2 : Full-pathname of FILEs accessed by LHA in 2 lines.
  495.  
  496.      < Example 16 > LHA a /r1x1l2 LINK.LZH c:\LINK.*
  497.  
  498.      LHA collects LINK.* with full-pathname from directories below
  499.      c:\, with information from where LHA gets this FILE(s).
  500.  
  501.  
  502.      /-[1|2] (The first letter switch).
  503.  
  504.      LHA recognizes the characters '-' and '@' as the first letter
  505.      of a FILE name.  By default, any file beginning with '@', like
  506.      '@xxx' is recognized as a Response File 'xxx'.  
  507.  
  508.      With
  509.      '/-1' switch LHA reads '@' as a character in the file name,
  510.      while with switch
  511.      '/-2' LHA recognizes both '-' and '@' as characters.
  512.  
  513.      To exit from this mode specify '/-[0]'.  You cannot use '--0' 
  514.      in this particular case.  LHA believes '--0' as a file name.
  515.  
  516.      /s[0|1] (refrain from "Skipped filename.ext" message).
  517.      
  518.      When LHA finds a file with the same name with newer time stamp,
  519.      LHA skips decompressing a file from an ARChive. This message may
  520.      cause some confusion in Batch mode execution. You may suppress the
  521.      display. New from this version 2.13.
  522.  
  523.   D.  Base Directory.
  524.   ==================
  525.  
  526.      Base directory is not the current nor the root directory.  It
  527.      is the directory on which LHA is executed.  Or you may believe
  528.      that you move to this directory and execute LHA from there. You
  529.      may specify a number of directories as your base directories.
  530.  
  531.  
  532.   < Example 17 > LHA x program c:\BIN\ *.EXE *.COM c:\TEMP\ *.MAN *.DOC
  533.                               ~~~~~~~             ~~~~~~~~
  534.  
  535.      Suppose you are on the directory d:\.  You want to extract
  536.      files with extensions .COM and .EXE on c:\BIN, and those with
  537.      extensions .MAN and .DOC on the directory c:\TEMP.  This is
  538.      equivalent to the following set of command lines:
  539.  
  540.              D>C:
  541.              C>CD \BIN
  542.              C>LHA x D:\program *.COM *.EXE
  543.              C>cd \TEMPp
  544.              C>LHA x D:\program *.MAN *.DIX
  545.  
  546.      Naturally, you can't dearchive a single FILE on multiple di-
  547.      rectories.  The directory specified first has the priority.
  548.  
  549.  
  550.   E.  DOS redirection and response file
  551.   =====================================
  552.  
  553.      LHA can't accept too many file names on a command line due to
  554.      MS-DOS's restriction.  To avoid this inconvenience, LHA now
  555.      accepts PIPES and REDIRECTS of DOS.  Besides, LHA can use work
  556.      file called response file to record the names of the files to
  557.      be archived like MAKEFILE for some compilers.
  558.  
  559.  a.  Response File.
  560.  
  561.      The response file name will be marked with the letter '@' as of
  562.      LINK.EXE, which is a text file.  You may just write whatever
  563.      you want LHA to be done on this file.  Response file ignores CR
  564.      code and uses space as a separator.  You may write options in
  565.      the response file but you can't nest, calling other response
  566.      file, file names.
  567.  
  568.  
  569.  b.  DOS Pipes and Redirects.
  570.  
  571.      You may specify the same information supplied by a response
  572.      FILE by using pipes or redirections.  You may create a response
  573.      FILE by redirection.
  574.  
  575.      < Example 18 > LHA l /n1 PARTS > FILE(s)
  576.                     LHA a NEWPARTS @FILE(s)
  577.  
  578.      Make a list of files in the 'PARTS.LZH' archive and use it to
  579.      make a new ARChive 'NEWPARTS.LZH'.  This is done by using the
  580.      response files, after some editing.
  581.  
  582.      < Example 19 > LS | SORTR | LHA a ALL ls -c | LHA a ALL
  583.  
  584.      Make a list of files in a directory by LS.EXE.  Sort file names
  585.      and make a sorted archive ALL.LZH.  Beware of the various for-
  586.      mats from output of LS.EXE.  LS.EXE is supposed to list files
  587.      one name per line without any attributes or time stamps.  LS
  588.      designed after UNIX will do the trick by "ls -c" or "ls -C".
  589.      C or c stand for "sorted by columns".
  590.  
  591.  
  592.   F.  Environmental Variables
  593.   ===========================
  594.  
  595.  a.  LHA and LHARC
  596.  
  597.      LHA overrides LHARC.  This will reset default optional.
  598.  
  599.  
  600.  b.  TMP
  601.  
  602.      Set working directory as -w option.  In case LHA recognizes no
  603.      working directory, it uses the current directory as the working
  604.      directory and creates temporary files on it.
  605.  
  606.  
  607.  c.  TZ
  608.  
  609.      The time zone (EST, PST, etc.) must be set when you archive
  610.      with the header level -h2- and when you dearchive with -h2-. In
  611.      the Eastern Standard Time zone you have to set TIME ZONE with
  612.      the DOS command: set TZ=EST+5.  Remember the default Remember
  613.      the default header level is -h1-, in which case you are all
  614.      set.
  615.  
  616.  
  617.   G.  Exit Codes.
  618.   ==============
  619.  
  620.      LHA will return following result codes after batch or other
  621.      processes' execution.
  622.  
  623.      0.  Normal.
  624.  
  625.      1.  CRC error occured, probably with 'e','x','t' commands.
  626.          Or LHA failed to create files because of disk space, or
  627.          because of files in existence.
  628.  
  629.      2.  Fatal error.  Process terminated without transactions.
  630.  
  631.      3.  Failed to write temporary files in the archive.  You may
  632.          find a temporary file LHTEMP)2(.LZH on your working direct-
  633.          ory.  You may rename this file with extension LZH, and use
  634.          it as an archive.
  635.  
  636.  
  637.   H.  Working File Names
  638.   ======================
  639.  
  640.        LHTMP)1(.LZH : Old ARChive renamed.
  641.        LHTMP)2(.LZH : Working file to be renamed as ARChive.
  642.  
  643.  
  644. 2.SFX, Self-Extracting archive
  645. ------------------------------
  646.  
  647.       General Usage:
  648.  
  649.          SFX.EXE [/x] [/!] [/eDIR] [DIR]
  650.  
  651.            /x: do not create new directory.
  652.            /!: auto-execution batch enable.
  653.            /a: restore file attributes.
  654.            [/eDIR],[DIR]; specify directory to extract.
  655.  
  656.  
  657.          SFX.EXE is an executable file with FILE(s) stored in
  658.          the archive to be automatically extracted by exe-
  659.          cution.  All the LHA distribution will be in the
  660.          Self-Extracting (SFX) .EXE-format.  Only LHA.EXE makes
  661.          SFX files from archive *.LZH made by LHA.EXE.  You
  662.          can't make a Self-Extracting executable file from the
  663.          archive made by 'LH113c.1.xx'.
  664.  
  665.      LHA makes two models of SFX files: (a) the small model and (b)
  666.      the large model according to the switch /x0 or /x1, with the
  667.      following special functions.
  668.  
  669.  
  670.    A.  Telop.
  671.    =========
  672.  
  673.      LHA displays any file with name '!' if SFX.EXE finds it
  674.      archived. LHA holds one screen after showing [Y/N] prompt.  LHA
  675.      proceeds to execute if it receives 'Y'.  It quits (aborts)
  676.      execution for 'N'.  (The '!' character was used as it is the
  677.      first printing character.  A file starting with '!' will always
  678.      be the first file in that archive.)
  679.  
  680.  
  681.    B.  Directory Specification.
  682.    ===========================
  683.  
  684.      This is possible only for the large model.  You can name the
  685.      directory on which to execute SFX.EXE.
  686.  
  687.      < Example 20 > LHA213.EXE c:\user
  688.  
  689.      LHA extracts FILE(s) in LHA212.EXE on C:\USER.  You may of
  690.      course type:
  691.  
  692.                 LHA e /x0 LHA213.EXE c:\user ,
  693.  
  694.      to keep the TELOP file.
  695.  
  696.  
  697.    C.  Auto Execution
  698.    ==================
  699.  
  700.      This is possible only for large models.
  701.  
  702.      Archive a batch file with the name "!.BAT" and include it in
  703.      the SFX file.  This batch works if and only if you type:
  704.  
  705.                      LHA213 /!
  706.  
  707.      LHA always extracts files on the current directory.  Any
  708.      existing "!.BAT" file is overwritten.  You can't activate an
  709.      existing !.BAT by using the "/!" switch even if there is one on
  710.      the current directory.  The batch file is read if and only if
  711.      it is archived in the SFX file.
  712.  
  713.      Two Models of Self-Extracting files are available:
  714.  
  715.  
  716.  a.  Small Model  (LHA s SFX.LZH)
  717.  
  718.      This is the default model.
  719.  
  720.      LHA ignores the directory structures even if you make the
  721.      archive file with the /x or /r[1|2] switch.  LHA holds only the
  722.      FILE names.  SFX.EXE extracts files to the current directory.
  723.  
  724.      There is no limit on the size of SFX.EXE as there was for
  725.      LH113c.
  726.  
  727.  
  728.  b.  Large Model  (LHA s /x1 SFX.LZH)
  729.  
  730.      You can run a batch file to specify the directory to extract
  731.      files.  You can retrieve original directory structures with
  732.      this model.  You may refrain from creating unexpected
  733.      structures by using the /x switch.
  734.  
  735.  
  736. 3.  Main Differences from LH113c
  737. --------------------------------
  738.  
  739.      LHA is an improved version of LH113c in principle.  You will
  740.      notice a number of differences between the two, when comparing.
  741.      Some of the differences will be mentioned at this time.  (You
  742.      may wish to read the LH113c manual for a better comparison if
  743.      anything appears confusing.)
  744.  
  745.      FILE names are not sorted when entered into an archive.  They
  746.      are entered in the order in which they appear in the directory,
  747.      when using wild cards.  (This is different from LH113c.) 
  748.      If you specify the order of FILE, then the order is
  749.      reproduced in the archive.  If you add new FILE(s), they will
  750.      be added at the end of the existing files.
  751.  
  752.      There are external utility programs by other authors which you
  753.      may use to sort the FILE names in your directory prior to
  754.      adding them to the archive.  Some programs actually resort the
  755.      archive itself.  Few include LH113c archives as LH113c already
  756.      sorted those.  LHA210 doesn't.  By using a 'pipe' you can type:
  757.  
  758.      < Example 21 >   LS *.C *.H | SORT | LHA a EX.
  759.  
  760.      LHA collects FILE(s) with extensions C and H sorted in the
  761.      archive named 'EX.LZH'.
  762.  
  763.      With LHA, the /r switch does not necessarily activate the /x
  764.      switch in extraction. In this version of LHA, the 'x' command
  765.      is equivalent to using 'E /x1m1', namely, LHA restores all the
  766.      tree structures of subdirectories.
  767.  
  768.      LHARC executed an AUTOLARC.BAT file by key word upon self-
  769.      extracting.  LHA no more uses keyword comparison.  If a SFX
  770.      file contains an !.BAT file, the batch is activated by '-!'
  771.      following the executable file name.
  772.  
  773.      The time stamp of LHA is relatively counted from 1970-01-01,
  774.      00:00:00 UTC by seconds.  You must be careful not to set date
  775.      or time which is illusory, like 00-00-00.  LHA will display
  776.      some indefinite date from overflow of the counter.
  777.  
  778.  
  779. 4.  Our distribution Policy
  780. ---------------------------
  781.  
  782.      This software, this document and LHA.EXE, is a copyright-
  783.      reserved free program.  You may use, copy and distribute this
  784.      software free of charge under the following conditions.
  785.  
  786.   1.  Never change Copyright statement.
  787.  
  788.   2.  The enclosed documents must be distributed with as a package.
  789.  
  790.   3.  When you have changed the program, or implemented the program
  791.       for other OS or environment, then you must specify the part
  792.       you have changed.  Also make a clear statement as to your name
  793.       and MAIL address or phone number.
  794.  
  795.   4.  The author is not liable for any damage on your side caused by
  796.       the use of this program.
  797.  
  798.   5.  The author has no duty to remedy for the deficiencies of the
  799.       program.
  800.  
  801.   6.  When you are to distribute this software with publications or
  802.       with your product, you have to print the copyright statement
  803.       somewhere on the disk or on the package.  You cannot
  804.       distribute this software with copyprotected products.
  805.  
  806.  
  807.           As long as those conditions are satisfied, you do not
  808.           need to get the author's permission to use or to dis-
  809.           tribute the software.
  810.  
  811.  
  812. 5.  How to contact the author.
  813. ------------------------------
  814.  
  815.      Please send MAIL to Forum flabo on Nifty Serve.  Go Nifty on
  816.      CompuServe and read the instructions there.  Your inquiries or
  817.      your questions are to be addressed to the one of the above
  818.      Nifty forums.  Direct MAIL to the author.
  819.  
  820.     My mail address :  SDI00506 | PFF00253 on Nifty Serve.
  821.                        pcs02846               ASCII-NET pcs.
  822.                        FEM12376               PC-VAN.
  823.  
  824.     Oversea Users may send inquiries, also, to K.Okubo to the address:
  825.                        [74100,2565]        on Compuserve,
  826.                        K.Okubo                Genie,
  827.                        c00236@sinet.ad.jp.    INTERNET,CSNET etc.
  828.  
  829.  
  830. 6. Acknowledgments
  831. -------------------
  832.  
  833.      I used the following softwares distributed on BBS.
  834.  
  835.      1. LSI-C86 ver 3.20 evaluation copy, from LSI Japan.
  836.  
  837.      2. A-MACROS /Structured Assembler Macros, from AMSCLS.INC
  838.         (c) Hortense S. Endoh 1986,1987 ver.2.10. I appreciate
  839.         the public distribution of these excellent softwares.
  840.  
  841.      What have I done in these days of rapidly changing software
  842.      technologies?  My LH113c has contributed for the improvements
  843.      of similar products such as PKZIP(tm) and PAK(tm).  Even with
  844.      my modest Japanese estimate, I can be proud of this achievement
  845.      at this time.  I thank all those people who supported and used
  846.      LH113c - voices of users have always been a constant encourage-
  847.      ment to me.
  848.  
  849.         I express my gratitude to Haruhiko Okumura and members
  850.         of SIG Science of PCVAN for the improvements of algo-
  851.         rithms,
  852.  
  853.         to K.Okubo who introduced and supported LH113c on over-
  854.         sea networks such as CompuServe and GEnie.
  855.  
  856.         to late Irvin Hoff, CP/M sysop Compusrve, who reviewed
  857.         the English version for spelling, grammar and English
  858.         phrasing while he was struggling with cancer,
  859.  
  860.         to K.Miki who introduced me to archivers and hold a
  861.         place for experiments,
  862.  
  863.         to members of LSI-Japan who offered excellent versions
  864.         of LSI-C, to the members of Forum FHONYAKU who prepared
  865.         the English manual, and finally to all who used LH113c
  866.         and supported it.
  867.  
  868.  
  869. 7.  Reference
  870. -------------
  871.   1.  Knuth, D.E., Dynamic Huffman Coding, J.Algorithms, 6:163-180.
  872.   2.  Kurita, T.   Harddisk Cook Book.  1987 Shoeisha,Tokyo.
  873.   3.  Kurita, T.  Tool Box of Computing, Huffman Coding, bit
  874.       70:100-101,1988.
  875.   4.  Okumura,K.,Masuyama,K.,Miki,K.  Practice and theory of Data
  876.       Compression.  The Basic, 70(March):1-65,1989.
  877.   5.  Fiala,E.R., and Greene,D.H., Data Compression with Finite Win-
  878.       dows, Comm.ACM, 32:490-595,1989.
  879.   6.  Okumura,H., and Yoshizaki,H.  Introduction to  Compression
  880.       Algorithm, C Magazine 3:1:44-68,1991.
  881.  
  882.                               - end -
  883.  
  884.