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 WHAT IT DOESNT DO Unpack does not (yet) accept any command-line parameters Also, it doesn't check to see if there is enough space on the device before unpacking to it. (Make sure there is enough space on the partition, or else!!) ============================================================================ INSTALLATION. The following files come with the archive: fileunpack merge merge.c (Source Code) readme.doc Unpack To install: 1. Copy these files into a directory on your hard-drive. 2. Add an assign to your user-startup Assign MK: : and thats it. Next time you reboot, you should be able to use unpack simply by entering the directory with the files you want to unpack in, then type MK:Unpack ============================================================================ THIS SOFTWARE IS E-MAILWARE!!!!! If you like and use this software, please e-mail me and let me know!. Who knows, I may even get around to improving it if enough people contact. (I could be even more convinced if you threw large amounts of cash my way!!) cs9h3kmk@swansea.ac.uk (Mark Kiddell) This account should be valid until June 1996.