Page 1 of 1

Consider protected files when unpacking LHA files

Posted: 2019-08-05, 07:59 UTC
by awoesten
Hi,

I'm often working with LHA files for data exchange with my Amiga. For that I use LHA 1.06 by Take and UnLHA32.DLL 1.95b by Micco which is the only way to work with LHA files on Windows / Total Commander in a reliable way.

There's just one bug: Amiga archives often contain .info files which are most of the time hidden/protected. I debugged that you pass the options

Code: Select all

x [file-to-unpack] [destination-path] -x1 -r2 -m0 -c 
But this way the option -a0 is set by default which means

"If '-a0' option is specified when extracting files, hidden and system files in the archive file are not extracted. Read-only files are extracted but the extracted file will not have read-only attribute." (from UnLHA32.DLL documentation)

If you now pass -a1 too, also these files will be readable and extractable:

"If '-a1' option is specified when extracting files, all files are extracted with file attribute specified in the archive file."

Therefore my bug report/feature request is to add -a1 as command line parameter to external LHA32 calls.

Thank you.
André

Re: Consider protected files when unpacking LHA files

Posted: 2019-08-05, 13:57 UTC
by ghisler(Author)
Have you tried adding the parameter in the TC settings behind die packer name?

Re: Consider protected files when unpacking LHA files

Posted: 2019-08-05, 17:08 UTC
by awoesten
That works! Thanks!