Question about way to Pack lha files.

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Re: Question about way to Pack lha files.

Post by *Sir_SiLvA »

@Gral: thanks. http://gral.y0.pl/tc/lha32.zip can delete from lha archives with only one confirmation.

@Ghisler: please add this version to your tools page and remove the dead link https://www.asahi-net.or.jp/~GI8S-TKUC
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Question about way to Pack lha files.

Post by *petermad »

Sir_SiLvA wrote: 2023-05-12, 18:53 UTC @Gral: thanks. http://gral.y0.pl/tc/lha32.zip can delete from lha archives with only one confirmation.
This version cannot delete files with spaces in the name from the archive, but it can pack and unpack files witth spaces in the name.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Re: Question about way to Pack lha files.

Post by *Sir_SiLvA »

petermad wrote: 2023-05-12, 23:35 UTC This version cannot delete files with spaces in the name from the archive, but it can pack and unpack files witth spaces in the name.
I read that post but I needed the lha deleting for some old amiga-lha-archives without THAT problem :D
Hoecker sie sind raus!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Question about way to Pack lha files.

Post by *ghisler(Author) »

Does the one on my server not work?
https://plugins.ghisler.com/plugins/lha32_267.zip
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Question about way to Pack lha files.

Post by *petermad »

2ghisler(Author)
Does the one on my server not work?
https://plugins.ghisler.com/plugins/lha32_267.zip
It can not pack files with long names or spaces in the names - this one can: http://gral.y0.pl/tc/lha32.zip
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Question about way to Pack lha files.

Post by *ghisler(Author) »

Thanks, I have updated my file to the from Gral.
Author of Total Commander
https://www.ghisler.com
User avatar
beb
Power Member
Power Member
Posts: 580
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Question about way to Pack lha files.

Post by *beb »

What about this one?

https://github.com/jca02266/lha
https://github.com/jca02266/lha/releases/download/release-20211125/lha-1.14i-ac20211125-x64.exe.zip 1.14i-ac20211125 (x86_64-w64-mingw32)

Code: Select all

lha.exe --version 2
lha.exe --help

Code: Select all

LHa for UNIX version 1.14i-ac20211125 (x86_64-w64-mingw32)
LHarc    for UNIX  V 1.02  Copyright(C) 1989  Y.Tagawa
LHx      for MSDOS V C2.01 Copyright(C) 1990  H.Yoshizaki
LHx(arc) for OSK   V 2.01  Modified     1990  Momozou
LHa      for UNIX  V 1.00  Copyright(C) 1992  Masaru Oki
LHa      for UNIX  V 1.14  Modified     1995  Nobutaka Watazaki
LHa      for UNIX  V 1.14i Modified     2000  Tsugio Okamoto
LHA-PMA  for UNIX  V 2     PMA added    2000  Maarten ter Huurne
                   Autoconfiscated 2001-2008  Koji Arai
usage: lha [-]<commands>[<options>] [-<options> ...] archive_file [file...]
  commands:  [axelvudmcpt]
  options:   [q[012]vnfto[567]dizg012e[w=<dir>|x=<pattern>]]
  long options: --system-kanji-code={euc,sjis,utf8,cap}
                --archive-kanji-code={euc,sjis,utf8,cap}
                --extract-broken-archive
                --convert-filename-case
                --ignore-mac-files
                --timestamp-archive
                --traditional
                --help
                --version
commands:                           options:
 a   Add(or replace) to archive      q{num} quiet (num:quiet mode)
 x,e EXtract from archive            v  verbose
 l,v List / Verbose List             n  not execute
 u   Update newer files to archive   f  force (over write at extract)
 d   Delete from archive             t  FILES are TEXT file
 m   Move to archive (means 'ad')    o[567] compression method (a/u/c)
 c   re-Construct new archive        d  delete FILES after (a/u/c)
 p   Print to STDOUT from archive    i  ignore directory path (x/e)
 t   Test file CRC in archive        z  files not compress (a/u/c)
                                     g  Generic format (for compatibility)
                                     0/1/2 header level (a/u/c)
                                     e  TEXT code convert from/to EUC
                                     w=<dir> specify extract directory (x/e)
                                     x=<pattern>  eXclude files (a/u/c)
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6973
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Question about way to Pack lha files.

Post by *Horst.Epp »

beb wrote: 2023-05-14, 17:50 UTC What about this one?

https://github.com/jca02266/lha
https://github.com/jca02266/lha/releases/download/release-20211125/lha-1.14i-ac20211125-x64.exe.zip 1.14i-ac20211125 (x86_64-w64-mingw32)
This version doesn't work at all.
There is no archive created even from simple short named file in TC.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Re: Question about way to Pack lha files.

Post by *Sir_SiLvA »

ghisler(Author) wrote: 2023-05-14, 12:27 UTC Does the one on my server not work?
https://plugins.ghisler.com/plugins/lha32_267.zip
The reason I asked you to add Grals version was because when I deleted a folder/file from a lha-archive
with it I had to confirm the deletion twice. First in TC and then in the dos box again.
Thanks for updating https://www.ghisler.com/tools.htm !
Hoecker sie sind raus!
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: Question about way to Pack lha files.

Post by *MaxX »

I have another lha.exe:

Code: Select all

LHA32 version 2.67.00 for test   Copyright (c) H.Yoshizaki(吉崎栄泰), 1988-95
=== <<< 高圧縮書庫管理プログラム >>> =========================== 1995-10-07 ===
使用法:LHA [aufmdpexlvst] [-rwxmpcazthoenls-df[-+012|WDIR]] LZH [DIR\] [FILES]
-------------------------------------------------------------------------------
《命令》a: ファイルを追加       u: 新ファイルを追加     m: 新ファイルを移動
        f: ファイルを更新       d: ファイルの削除       p: ファイルの閲覧
        e: ファイルを復元       x: ディレクトリ付きでファイルを復元
        l: 書庫の一覧表示       v: 書庫の一覧表示(ディレクトリ付)
        s: 自己解凍書庫の作成   t: 書庫のテスト
《オプション》
        r: サブディレクトリも検索       w: ワークディレクトリの指定
        x: ディレクトリ名を有効にする   m: 問い合わせをしない
        p: 名前の比較を厳密に行う       c: 日時照合を行わない
        a: 全属性を凍結の対象とする     z: 無圧縮格納
        t: 書庫の時刻を最新のファイルに h: ヘッダ形式 (-h2)
        o: LHarc 互換形式で格納         n: 経過表示をしない
        e: 辞書サイズを指定 (-e1)       l: 経過表示のファイル名表示を長く (-l1)
        s: 非解凍時の表示をしない       -: '-', '@' の機能を抑制
        d: ディレクトリ名も格納する     f: ディスク残量のチェックをしない
===============================================================================
  試作版につき NIFTY-Serve FLABO 以外への転載厳禁!      NIFTY-Serve  SDI00506
It says the release date as 1995 and version 2.67.

Your version is

Code: Select all

Lha32 version 1.06                    Copyright (c) Take, 1995-1996
=== <<< A High-Performance File-Compression Program >>> ========  96/10/26  ===
Usage: Lha32 <command> [/option[-+012|WDIR]] <archive[.LZH]> [DIR\] [filenames]
-------------------------------------------------------------------------------
  <command>
     a: Add files           u: Update files        m: Move files
     f: Freshen files       d: Delete files        p: disPlay files
     e: Extract files       x: eXtract files with pathnames
     l: List of files       v: View listing of files with pathnames
     s: make a Self-extracting archive   t: Test the integrity of an archive
  <option>
     r: Recursively collect files        w: assign Work directory
     x: allow eXtended file names        m: no Message for query
     p: distinguish full Path names      c: skip time-stamp Check
     a: allow any Attributes of files    z: Zero compression (only store)
     t: archive's Time-stamp option      h: select Header level (default = 2)
     o: use Old compatible method        n: display No indicator a/o pathname
     i: not Ignore lower case            l: display Long name with indicator
     s: Skip by time is not reported     -: '@' and/or '-' as usual letters
===============================================================================
 You may copy or distribute this software free of charge.
                                                     gi8s-tkuc@asahi-net.or.jp
UNLHA32.DLL Version 2.54                                 Nifty-Serve  QZI12273
It says the release date as 1996 and version 1.06.

Left is mine, right is yours - https://i.ibb.co/KDCgygp/clipboard.png
Should I update my version of LHA.EXE to use yours?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Re: Question about way to Pack lha files.

Post by *Sir_SiLvA »

MaxX wrote: 2023-05-15, 19:51 UTC I have another lha.exe:

Code: Select all

LHA32 version 2.67.00 for test   Copyright (c) H.Yoshizaki(吉崎栄泰), 1988-95
That is the old version that was on Chris site before it replace by Grals Version.
So, yes replace that one.
Hoecker sie sind raus!
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: Question about way to Pack lha files.

Post by *MaxX »

2Sir_SiLvA
This new one does not work without DLL. My old works. Any solution?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Re: Question about way to Pack lha files.

Post by *Sir_SiLvA »

2MaxX
1) just live with it? cause the old one was bad for a) being jp output ONLY b) having you double confirm deletes inside an archive.
2) if you cant live with a 313kb dll just keep the old version?
Hoecker sie sind raus!
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: Question about way to Pack lha files.

Post by *MaxX »

2Sir_SiLvA
Just asking. No problem there.
Ukrainian Total Commander Translator. Feedback and discuss.
Post Reply