This Amiga CLI program simplifies the extraction of large numbers of LHA archives commonly used in WHDLoad. Designed with WHDLoad Download Tool users in mind, it automates the process of searching for archives in all subfolders and extracting them to a specified target path while preserving the original folder structure.
- Scanning input folders and subfolders for LHA and LZX archives
- Extracting the archives using the LHA/LZX program to an output folder
- Preserving the subfolder structure from the input folder during extraction
- Extracting only new or updated files to avoid unnecessary duplication
- LHA: can be downloaded from aminet.net/package/util/arc/lha.
- LZX: required for a small number of archives, and this can be downloaded from aminet.net/package/util/arc/lzx121r1.
$ WHDArchiveExtractor <source_directory> <output_directory>For example:
$ WHDArchiveExtractor PC0:WHDLoad/Beta DH0:WHDLoad/BetaThis will scan the PC0:WHDLoad/Beta directory and extract all LHA archives found to the DH0:WHDLoad/Beta directory, preserving the folder structure.
To compile the program, use an Amiga C compiler, such as SAS/C, with the provided source code. It must be compiled with the StackExtend flag to avoid stack overflows. As far as I know, this feature is only supported by the SAS/C compiler.
Before using this program, please make sure to backup any important data or files. The creators and contributors of this software are not responsible for any data loss or damage that may occur as a result of using this program.
This project is licensed under the MIT License.