Welcome, Guest. Please login or register.

Author Topic: How to use lha files  (Read 16486 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bigcrabbyTopic starter

  • Newbie
  • *
  • Join Date: Jul 2006
  • Posts: 14
    • Show only replies by bigcrabby
How to use lha files
« on: July 04, 2006, 04:12:13 AM »
Can someone explain to me how to use lha files and extract them. Thank you.
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: How to use lha files
« Reply #1 on: July 04, 2006, 06:58:49 AM »
1. Download 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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline orange

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: How to use lha files
« Reply #2 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:..)
Better sorry than worry.
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: How to use lha files
« Reply #3 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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline whiteb

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 739
    • Show only replies by whiteb
Re: How to use lha files
« Reply #4 on: July 04, 2006, 09:17:07 AM »
lha x Source Destination

lha x test.lha ram:
lha x test.lha dh0:test
A4000D - CSMKII//128MB/IDE CF/Indivision Scandoubler
A1200
A1000

(And now a Minimig) :>)
 

Offline doctorq

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show only replies by doctorq
Re: How to use lha files
« Reply #5 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.
 

Offline orange

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: How to use lha files
« Reply #6 on: July 04, 2006, 10:05:03 AM »
er, yes, I made a mistake, the commands dont have a "-"

Better sorry than worry.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: How to use lha files
« Reply #7 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?
 

Offline neuroflip

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 200
    • Show only replies by neuroflip
    • http://a1200.wordpress.com
Re: How to use lha files
« Reply #8 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
[http://a1200.wordpress.com (spanish)
a1200 + Bliz1260/50Mhz/64Mb + HD10Gb + a520 svideo mod + Wireless PCMCIA Elsa MC-11 + PCMCIA CF + Adaptator + CF 256Mb + a500 + 512Kb]
 

Offline doctorq

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show only replies by doctorq
Re: How to use lha files
« Reply #9 on: July 04, 2006, 10:54:09 AM »
@Piru

Ahh, two people out of four giving the right syntax, is that so bad?? :-D
 

Offline orange

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: How to use lha files
« Reply #10 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..
Better sorry than worry.
 

Offline bigcrabbyTopic starter

  • Newbie
  • *
  • Join Date: Jul 2006
  • Posts: 14
    • Show only replies by bigcrabby
Re: How to use lha files
« Reply #11 on: July 04, 2006, 04:55:42 PM »
Thank you for the info, what about lzx files? James Hayes
 

Offline Thomas

Re: How to use lha files
« Reply #12 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

Offline Cass

  • Hero Member
  • *****
  • Join Date: Apr 2003
  • Posts: 826
  • Country: 00
    • Show only replies by Cass
Re: How to use lha files
« Reply #13 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)
"If we don't got it, you don't want it!"