Skip to content

Kwezza/WHD-Archive-Extractor

Repository files navigation

WHD Archive Extractor

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.

Key Features

  • 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

Prerequisites

To use this program, ensure the following software is installed in the C: directory

Usage

$ WHDArchiveExtractor <source_directory> <output_directory>

For example:

$ WHDArchiveExtractor PC0:WHDLoad/Beta DH0:WHDLoad/Beta

This will scan the PC0:WHDLoad/Beta directory and extract all LHA archives found to the DH0:WHDLoad/Beta directory, preserving the folder structure.

Building

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.

Disclaimer

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.

License

This project is licensed under the MIT License.

About

tool to extract WHDLoad lha archives to respective folders on mass

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages