Welcome, Guest. Please login or register.

Author Topic: lha return codes  (Read 4396 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: lha return codes
« Reply #14 from previous page: February 07, 2015, 10:03:21 PM »
Quote from: orange;783236
lha fails on some archives only, executing script, with code 10 or 20.
seems that 20 happens when filename contains nonstandard-ASCII char. but what is 10?
strangely, with error 10, it fails only in script.
thanks.



10 and 20 mean nothing. They are just standard AmigaDOS return codes for error resp. failure. You have to read the error messages Lha prints out. Don't use >nil: or similar to hide the messages if you need them.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: lha return codes
« Reply #15 on: February 08, 2015, 06:35:48 AM »
Quote from: Thomas;783280
10 and 20 mean nothing. They are just standard AmigaDOS return codes for error resp. failure. You have to read the error messages Lha prints out. Don't use >nil: or similar to hide the messages if you need them.


Thanks Thomas.

After doing some tests, I think the aminet archive could be reduced in size to less than 50% with this method.
Better sorry than worry.
 

Offline Oldsmobile_Mike

Re: lha return codes
« Reply #16 on: February 09, 2015, 05:06:36 AM »
Quote from: orange;783296
After doing some tests, I think the aminet archive could be reduced in size to less than 50% with this method.

Neat project, but why would you do this?  LHA has been the standard archive format for Amiga's for something like 20 years, and everybody has it.  I wouldn't even know what to do with a 7z compressed file on my Amiga.  And it's not like hard drive space is expensive, even the entire Aminet isn't that big in the grand scheme of things, anymore.  :huh:

Oh well, good luck anyway!  :)
Amiga 500: 2MB Chip|16MB Fast|30MHz 68030+68882|3.9|Indivision ECS|GVP A500HD+|Mechware card reader + 8GB CF|Cocolino|SCSI DVD-RAM
Amiga 2000: 2MB Chip|136MB Fast|50MHz 68060|3.9|Indivision ECS + GVP Spectrum|Mechware card reader + 8GB CF|AD516|X-Surf 100|RapidRoad|Cocolino|SCSI CD-RW
 Amiga videos and other misc. stuff at https://www.youtube.com/CompTechMike/videos