home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1994 #0 / pc_shareware_0_94.zip / LHA_DOC.LZH / LHA211.DOC < prev   
Text File  |  1991-03-03  |  30KB  |  855 lines

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