Short: Automated File Unpacker for .lha, .lzh archives. Author: cs9h3kmk@swansea.ac.uk (Mark Kiddell) Uploader: cs9h3kmk swansea ac uk (Mark Kiddell) Type: util/arc Architecture: m68k-amigaos Unpack 1.0 by Mark Kiddell - 7th December 1995 ============================================== INTRODUCTION There are plenty of utilities on the Aminet for extracting lha and lzh archives, however none of them did quite what I wanted. So I wrote Unpack. THE PROBLEM Say you have a list of files in a directory, e.g. Directory of "Downloads:Utils/Disk-Utils" on Today 01:44 -----rwxd Oct 26 95 15:19 14 6,278 FmsDisk.lha -----rwxd Oct 26 95 15:19 69 34,474 NoErrors.lha -----rwxd Oct 26 95 15:19 100 50,256 OKTAGON.LHA -----rwxd Oct 26 95 15:19 57 28,436 PCDisk.lha -----rwxd Oct 26 95 15:19 446 227,728 PFS.lha -----rwxd Oct 26 95 15:19 20 9,404 PsuedoHD.lha 6 files - 0 dirs - 0 links - 706 blocks - 356576 bytes Used 52600320 bytes - Free 56294912 bytes (12% free) Now say that you want to unpack each of these. Sometimes when unpacking, lha archives create their own directory and place all of their files in it. However, some archives put all of there files in the current directory, which can get messy. If you were decompressing all of the above lha files at the same time, you you could become quite confused which file belongs to each archive. (I do!) THE SOLUTION Enter the directory shown above and type MK:Unpack WHAT IT DOES For the above example, Unpack will create directories called FmsDisk, NoErrors, OKTAGON, PCDisk, PFS, and PsuedoHD. Into each of these directories, the relevant archive will be decompressed. Once an archive has been decompressed, the .lha or .lzh file is moved into the Unarchived directory (Created automatically). The result is: Directory of "Downloads:Utils/Disk-Utils" on Today 01:55 d----rwxd Today 01:54 2 (dir) FmsDisk d----rwxd Today 01:54 2 (dir) NoErrors d----rwxd Today 01:54 2 (dir) OKTAGON d----rwxd Today 01:54 2 (dir) PCDisk d----rwxd Today 01:54 2 (dir) PFS d----rwxd Today 01:55 2 (dir) PsuedoHD d----rwxd Today 01:55 2 (dir) Unarchived