Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: orb85750 on November 27, 2010, 02:45:23 AM

Title: LHA question for classic Amiga
Post by: orb85750 on November 27, 2010, 02:45:23 AM
I've used .adf files, but up until now I've avoided .lha files.  I gather that I need a copy of LHA (an executable) on my machine in order to unzip the .lha files.  Is there a good place from which to grab this LHA executable?  Thanks.
Title: Re: LHA question for classic Amiga
Post by: rednova on November 27, 2010, 02:51:54 AM
I am sure you can get lha program for free on aminet.
Just get lha, run it on amiga, and it will work.

Rednova
Title: Re: LHA question for classic Amiga
Post by: save2600 on November 27, 2010, 02:54:54 AM
You forgot the million dollar password:

http://aminet.net/package/util/arc/lha

...download this bad boy and then rename its name to simply 'lha' and place in your 'C' directory. Or type lha.run everytime you want to unarc something - I don't care.  lol

lha e file.lha ram:     (or)   lha file.lha ram:

I can't remember if you need the 'e' (extract) switch or not. But anyway... that CLI command extracts and then places the folder/files into your RAM: disk from which you can examine the contents of safely.
Title: Re: LHA question for classic Amiga
Post by: Mr_DBUG on November 27, 2010, 03:21:55 AM
If you need to unpack lha on Windows, I think you can use WinRAR as well !
But watch out for unsupported filestructures in the archive. (Some characters Windows filesystem dont like .. I think :-)
Title: Re: LHA question for classic Amiga
Post by: orb85750 on November 27, 2010, 04:14:25 AM
Thanks guys!
Title: Re: LHA question for classic Amiga
Post by: bbond007 on November 27, 2010, 04:24:59 AM
Quote from: save2600;594600

I can't remember if you need the 'e' (extract) switch or not. But anyway... that CLI command extracts and then places the folder/files into your RAM: disk from which you can examine the contents of safely.


i think you use 'x'
Title: Re: LHA question for classic Amiga
Post by: smerf on November 27, 2010, 05:00:51 AM
Hi,

Put lha (lharc) etc in you C section, then fire off diskmaster II. I use this all the time to use lha on my Amiga, been using it since 92, works well and makes fast backups of your HD on the Amiga.

save2600, nice answer, wish more people answered like this.

smerf
Title: Re: LHA question for classic Amiga
Post by: PanterHZ on December 05, 2010, 02:49:18 AM
The "e" switch extracts files without paths
The "x" switch extracts files with full paths.

Another thing to remember is that the destination dir must end with a colon or slash like this:

lha x file.lha ram:
lha x file.lha ram:stuff/

If you simply want to see what's inside an archive you can use this:

lha v file.lha

You can also re-direct this output to a file like this:

lha v file.lha >ram:archlist

Then you can open ram:archlist in a text editor/viewer.
Title: Re: LHA question for classic Amiga
Post by: Cammy on December 05, 2010, 01:10:11 PM
You will need to double-click and run the lha.run file before you copy anything anywhere. It's a self-extracting archive and should produce a few different binaries for different CPUs. Copy the one best suited to your CPU to C: and rename it lha.

And always use lha x to extract your files, don't bother with e or you're only asking for problems.