LHARK
m |
m (→Sample files) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|subcat=Archiving | |subcat=Archiving | ||
|extensions={{ext|lzh}} | |extensions={{ext|lzh}} | ||
− | |released= | + | |released=≤1995 |
}} | }} | ||
:''Not to be confused with LHarc – see [[LHA]].'' | :''Not to be confused with LHarc – see [[LHA]].'' | ||
− | '''LHARK''' is a compressed archiving utility for DOS, developed by Kerwin F. Medina. It uses [[LHA]] file format, but adds a custom compression scheme | + | '''LHARK''' is a compressed archiving utility for DOS, developed by Kerwin F. Medina. It uses [[LHA]] file format, but adds a custom compression scheme, with identifier "<code>lh7</code>". |
Unfortunately, this conflicts with a different <code>lh7</code> compression scheme supported by some of the main-line [[LHA#Software|LHA software]] (e.g. LHA 2.66+, LHa for Unix). | Unfortunately, this conflicts with a different <code>lh7</code> compression scheme supported by some of the main-line [[LHA#Software|LHA software]] (e.g. LHA 2.66+, LHa for Unix). | ||
− | + | == Self-extracting archives == | |
+ | LHARK can create self-extracting archives, in [[MS-DOS EXE|DOS EXE]] format. Versions 0.3e through 0.4d have been evaluated. | ||
+ | |||
+ | The extraction code is compressed with [[LZEXE]], but modified in order to run some code before LZEXE decompression takes over. An LHARK archive is embedded in the ''overlay'' segment (refer to [[MS-DOS EXE#Special file positions]]). | ||
+ | |||
+ | Refer to [[LHA/LHarc self-extracting archive]] for LHA self-extracting archives in general. | ||
+ | |||
+ | == Identification == | ||
+ | LHARK uses generalized LHA format, so start with [[LHA#Identification]]. | ||
+ | |||
+ | Distinguishing LHARK format can be problematic. An LHA member file with ''all'' of the following properties almost certainly uses LHARK compression: | ||
+ | |||
+ | * The compression method field starting at offset 2 is "<code>-lh7-</code>". | ||
+ | * The byte at offset 20 is <code>0x01</code> (the header level). | ||
+ | * The byte at offset 24+{the value of the byte at offset 21} is <code>0x20</code>. This "OS code" (an ASCII space) is reasonably, though not completely, specific to LHARK. | ||
+ | |||
+ | Note that if the first member file of an LHARK-created file was incompressible, then the standard "<code>-lh0-</code>" compression method ID will appear at file offset 2, instead of "<code>-lh7-</code>". | ||
== Software == | == Software == | ||
+ | * LHARK 0.3e: [https://archive.org/details/Tech_Arsenal_3_Arsenal_Computer_CD-ROM_Publishers Tech Arsenal 3] → ARCHIVE/LHARK03E.ZIP | ||
+ | * LHARK v0.3o: [https://archive.org/details/CHIP1996AprilisCD06 CHIP 1996. április (CD 06)] → CHIP 1996 aprilis (CD06).zip → CHIP_CD06.ISO → sac/pack/lhark03o.exe | ||
* {{CdTextfiles|230/EMULATOR/PACKER/LHARK.EXE|LHARK 0.4a}} (bare executable) | * {{CdTextfiles|230/EMULATOR/PACKER/LHARK.EXE|LHARK 0.4a}} (bare executable) | ||
* [https://www.sac.sk/download/pack/lhark04d.zip LHARK 0.4d] | * [https://www.sac.sk/download/pack/lhark04d.zip LHARK 0.4d] | ||
+ | * {{Deark}} | ||
+ | * [https://fragglet.github.io/lhasa/ Lhasa] (v0.4.0+) | ||
+ | |||
+ | == Sample files == | ||
+ | * {{DexvertSamples|archive/lha}} | ||
+ | * [https://archive.org/details/PCMCDS Discos PCManía] → PCMania CD53_1.iso → SHAREWAR/JUEGOS/EYEDBALL/EYEDFILE |
Latest revision as of 19:50, 16 February 2024
- Not to be confused with LHarc – see LHA.
LHARK is a compressed archiving utility for DOS, developed by Kerwin F. Medina. It uses LHA file format, but adds a custom compression scheme, with identifier "lh7
".
Unfortunately, this conflicts with a different lh7
compression scheme supported by some of the main-line LHA software (e.g. LHA 2.66+, LHa for Unix).
Contents |
[edit] Self-extracting archives
LHARK can create self-extracting archives, in DOS EXE format. Versions 0.3e through 0.4d have been evaluated.
The extraction code is compressed with LZEXE, but modified in order to run some code before LZEXE decompression takes over. An LHARK archive is embedded in the overlay segment (refer to MS-DOS EXE#Special file positions).
Refer to LHA/LHarc self-extracting archive for LHA self-extracting archives in general.
[edit] Identification
LHARK uses generalized LHA format, so start with LHA#Identification.
Distinguishing LHARK format can be problematic. An LHA member file with all of the following properties almost certainly uses LHARK compression:
- The compression method field starting at offset 2 is "
-lh7-
". - The byte at offset 20 is
0x01
(the header level). - The byte at offset 24+{the value of the byte at offset 21} is
0x20
. This "OS code" (an ASCII space) is reasonably, though not completely, specific to LHARK.
Note that if the first member file of an LHARK-created file was incompressible, then the standard "-lh0-
" compression method ID will appear at file offset 2, instead of "-lh7-
".
[edit] Software
- LHARK 0.3e: Tech Arsenal 3 → ARCHIVE/LHARK03E.ZIP
- LHARK v0.3o: CHIP 1996. április (CD 06) → CHIP 1996 aprilis (CD06).zip → CHIP_CD06.ISO → sac/pack/lhark03o.exe
- LHARK 0.4a (bare executable)
- LHARK 0.4d
- Deark
- Lhasa (v0.4.0+)
[edit] Sample files
- dexvert samples — archive/lha
- Discos PCManía → PCMania CD53_1.iso → SHAREWAR/JUEGOS/EYEDBALL/EYEDFILE