Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: sturulez on August 16, 2012, 01:09:10 PM

Title: Using lha?
Post by: sturulez on August 16, 2012, 01:09:10 PM
Hi there, Im starting to make more use of my A1200 now and id like to install a few games. Ive heard i need LHA in order to extract the installation file. Could someone please tell me how to install LHA to my system and run the installation program for the game.
 
So far ive got LHA.RUN, and double clicked on it and its extracted the files in my Work: folder.
Me thinking thats installed, i thought id try and use the installer for monkey island 2. so i went into shell and typed
 
Work: LHA X "MONKEY.LHA RAM:
 
It then says operation successfull but doesnt show any files its extracted, i go into ram, click show all files but the installer program is not there. I remember doing this years ago and got it to work but for some reason i cant seem to do it now..
 
can someone point me in the right direction?
 
thanks
Title: Re: Using lha?
Post by: Bamiga2002 on August 16, 2012, 01:38:49 PM
Type "LHA ?" in a shell to get the commands you can use.
Title: Re: Using lha?
Post by: amiman99 on August 16, 2012, 02:11:36 PM
1. Rename LHA.RUN to LHA
2. copy the LHA file to C:
3. to extract lha files type: lha x -x filename.lha ram:

should work.
Title: Re: Using lha?
Post by: Bamiga2002 on August 16, 2012, 03:10:04 PM
LHA.run is a self-extracting archive that contains the lha-command. And you don't need the " symbol in your command line if the filename doesn't contain spaces.

here's some advice for you: http://guide.abime.net/wb3.1/chaplha.htm
Title: Re: Using lha?
Post by: sturulez on August 16, 2012, 04:25:33 PM
Thanks for the advice, I went to the link that you showed me done exactly as it says but still no joy, and placed LHA in c:
Could there be something that my system is missing or is the monkey.lha file damaged or missing something?
Title: Re: Using lha?
Post by: Duce on August 16, 2012, 04:39:19 PM
what error msgs are you getting?  Make sure you have the path correct on the file you wish to extract, or are currently in that directory.

With LHA in c: dir, and monkey.lha in RAM:, if you are in RAM: dir in command line/shell a simple lha x monkey.lha should work

Can't recall if it's case sensitive atm, tbh.  Last time I used LHA in shell was 15 years ago, heh.  I just use it in diropus or via OS4's dockie drop unpacker.

Kill the " in your OP if you are entering that.
Title: Re: Using lha?
Post by: amiga-penn-wchester on August 16, 2012, 04:39:30 PM
with lha in your path,

I always used
Ram Disk>  lha e file.lha
Title: Re: Using lha?
Post by: zipper on August 16, 2012, 04:53:05 PM
Anyway you should get some output from LHA. What do you get if you type in Shell/Cli just LHA ? Like this?
Title: Re: Using lha?
Post by: runequester on August 16, 2012, 06:22:09 PM
It's worth noting that there are GUI options for LHA too. I'll have to see which one I used on my 1200.
Title: Re: Using lha?
Post by: sturulez on August 17, 2012, 04:28:58 AM
Quote from: Duce;703802
what error msgs are you getting?  Make sure you have the path correct on the file you wish to extract, or are currently in that directory.

With LHA in c: dir, and monkey.lha in RAM:, if you are in RAM: dir in command line/shell a simple lha x monkey.lha should work

I'm not getting any error messages it says operation successfull but there are no files in Ram, I think when I did it years ago it would show what files are being extracted in shell.

I think I do have Diropus on the HDD as it came with the A1200 when I got it from Amigakit.co.uk. But for the life of me I've got no idea how to use it.
I've just ordered a PCMCIA card which has whdload on and a load of other stuff on aswell.
Could this help my situation?
Title: Re: Using lha?
Post by: amiga-penn-wchester on August 17, 2012, 05:02:11 AM
have you tried just e, as in

Ram Disk:>  lha e file.lha

?

typically x = extract to full path
and e = just extract
Title: Re: Using lha?
Post by: avanham on August 17, 2012, 07:11:14 AM
I suspect your "monkey.lha" is a zero-length file. You will still get a "successful" message if you try to extract from an empty archive, you just won't get any files.

Try this:
lha v monkey.lha

You should get a listing of all the files in this archive.  If you don't then there is something wrong with the monkey.lha file
Title: Re: Using lha?
Post by: psxphill on August 17, 2012, 11:00:52 AM
Quote from: avanham;703937
I suspect your "monkey.lha" is a zero-length file. You will still get a "successful" message if you try to extract from an empty archive, you just won't get any files.
 
Try this:
lha v monkey.lha
 
You should get a listing of all the files in this archive. If you don't then there is something wrong with the monkey.lha file

It should list the files when extracting as well. The OP doesn't know how to ask for help or we'd have seen the output by now.
Title: Re: Using lha?
Post by: sturulez on August 19, 2012, 09:26:13 PM
All my problems have been solved now I've got WHDLOAD sorted on my system! :-D