Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: bigcrabby on July 04, 2006, 04:12:13 AM

Title: How to use lha files
Post by: bigcrabby on July 04, 2006, 04:12:13 AM
Can someone explain to me how to use lha files and extract them. Thank you.
Title: Re: How to use lha files
Post by: motorollin on July 04, 2006, 06:58:49 AM
1. Download lha.run (http://de5.aminet.net/util/arc/lha.run)
2. Copy lha.run to your Amiga
3. Open a shell
4. Use CD to get to the directory where you put lha.run
5. Type "lha.run" which will extract the lha command
6. Copy lha to c:
7. Type "lha" to see the syntax for the lha command

--
moto
Title: Re: How to use lha files
Post by: orange on July 04, 2006, 08:55:05 AM
I usually extract to ram:, so its


lha x archive_name.lha   RAM:


if, by any chance, its a multivolume archive, don't forget to put in -V switch

(edit:..)
Title: Re: How to use lha files
Post by: motorollin on July 04, 2006, 09:09:05 AM
Is it -x, or just x? I haven't used the CLI to unarchive an lha for ages but I seem to remember using "lha x "

--
moto
Title: Re: How to use lha files
Post by: whiteb on July 04, 2006, 09:17:07 AM
lha x Source Destination

lha x test.lha ram:
lha x test.lha dh0:test
Title: Re: How to use lha files
Post by: doctorq on July 04, 2006, 09:38:40 AM
When I extract with LHA I only use x as a parameter.

When extracting to a directory, remember to put the / after the directory name, otherwise it will fail.
Title: Re: How to use lha files
Post by: orange on July 04, 2006, 10:05:03 AM
er, yes, I made a mistake, the commands dont have a "-"

Title: Re: How to use lha files
Post by: Piru on July 04, 2006, 10:51:18 AM
@whiteb

Quote
lha x test.lha dh0:test

That fails.

All: Would be it much trouble to actually test and make sure your examples work?
Title: Re: How to use lha files
Post by: neuroflip on July 04, 2006, 10:53:58 AM
u can use unarc (amigaOS3.9 only?)... it is easier if you are not familiarized with lha sintaxis / amigaDOS.

cu
Title: Re: How to use lha files
Post by: doctorq on July 04, 2006, 10:54:09 AM
@Piru

Ahh, two people out of four giving the right syntax, is that so bad?? :-D
Title: Re: How to use lha files
Post by: orange on July 04, 2006, 01:29:36 PM
Piru:
I'm @ work, no Amigas or UAE here to check it.. :-(

BTW, how would one delete file named "_" from archive without recompression?  I've tried wildcards with no success..
Title: Re: How to use lha files
Post by: bigcrabby on July 04, 2006, 04:55:42 PM
Thank you for the info, what about lzx files? James Hayes
Title: Re: How to use lha files
Post by: Thomas on July 04, 2006, 04:59:51 PM

If the program to extract lha files is called lha, guess what is the program to extract lzx files called ?

Bye,
Thomas
Title: Re: How to use lha files
Post by: Cass on September 05, 2009, 09:25:50 PM
@ orange
How should I syntax the command in order to create a multivolume lha file with ~1GB volume files ?

I tried the "lha a -rV1000000 -Qv WBVolume:archive.lha  path_where_files_reside"
but keeps asking "inserting volume 2 in device : " ... how do I specify the device to automate the process?

P.S. I want to create a backup of a ~6GB drawer, into multiple lha volumes (about 1GB each)