------------------------------------------------------------------------ LHA Version 2.55E Manual Ver 2.55 Jan. 04, 1996 ------------------------------------------------------------------------ Haruyasu Yoshizaki SDI00506@niftyserve.or.jp pcs02846@asciinet.or.jp FEM12376@pcvan.or.jp ------------------------------------------------------------------------ Translated and Edited by: Hitoshi Ozawa h_ozawa@bekkoame.or.jp homepage: http://www.bekkoame.or.jp/~h_ozawa/ ------------------------------------------------------------------------ 0. Liability ----------------- The author and the developer of this software will not take responsibility for any damage that may result from the use of this software. The files contained in LHA255.EXE are distributed "as is" and without any expressed and implied warranties. The user assumes the entire risk of using the software. 1. Introduction ----------------- LHarc, a precursor to the LHA file utility, became one of the standard file compression/extraction utility in Japan despite its slowness. I am also pleased that some overseas users have taken to using this tool. I, however, have continued on my research for a new compression algorithm even after releasing LHarc to the public. The fruit of my two years of research is incorporated in the new utility, LHA which I would now like to make public. (Feb. 24, 1991 Yoshizaki) Differences between LHA and LHarc: ---------------------------------- Improvements: - Higher compression LHA offers a higher compression rate than LHarc especially when compressing large files. On the other hand, compression rate is worse for files smaller than few hundred bytes. - Faster file extraction Extraction algorithm was changed to static Huffman algorith from dynamic Huffman algorithm to decrease file extraction time. Nevertheless, compression time did not decrease as much as I expected. Degradation: - Increased memory usage LHA requires more memory. Use caution when executing LHA from another program or in a child process. When LHA detects memory shortage, it will try to continue by decreasing compression rate. - Only upward compatible with LHarc Files compressed by LHA can not be extracted by LHarc. However, files compressed by LHarc may be extracted by LHA. 2. Copyright ----------------- LHA is copyrighted by Haruyasu Yoshizaki. Microsoft is a registered trademark and MS-DOS is a trademark of Microsoft Corporation in the United States of America and other countries. Other brand and product names are trademarks or registered trademarks of their respective holders. 3. Simple Usage Examples ------------------------- To extract files with directories: lha x [archive file name] NOTE: Extension should be specified with archive file name. Example: lha x temp.lzh The above command extracts all files contained in archive file TEMP.LZH. To archive files to an archive file: lha a [archive file name] [file name] NOTE: Do not specify archive file name extension. Archived files are created with extension LZH. Example: lha a temp test1.txt test2.txt The above command compresses files TEST1.TXT and TEXT2.TXT and creates an archive file TEMP.LZH. To convert an archive to to self-extraction format: lha a [archive file name] NOTE: Do not specify file extension. Self-extracting file with EXE extension is created from archive file with LZH extension. Example: lha s temp The above command creates self-extracting file TEMP.EXE with files contained in archive file TEMP.LZH. 4. Usage --------- A. General Format: ================== @LHA [-