MultiArc: How to deal with dirs in filelists?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

MultiArc: How to deal with dirs in filelists?

Post by *van Dusen »

Hello,

I didn't find a working configuration for SBC 0.970Rev2 so far, so I tried my own:

Code: Select all

[SBC MultiFiles]
ID=53 42 43 
IDPos=0
Extension=sbc
Archiver=C:\Programme\MiscApps\SBC.exe
List="%P l -v -y %a"
Start="^                   ========                  ====     ====       ====    ====="
End="^The whole archive contains"
Extract="%P x -y %a -@%L"
ExtractWithPath="%P x -y %a -@%L"
Test="%P t -y %a"
Add="%P c -m3{ %S} -vc %AQA -@%l"
AskHistory0=-b5
AskHistory1=-b63
AskHistory2=-b15 -on
AskMode=0
Description="SBC 0.970Rev2"
Format0="nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
         nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
         nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
         nnnnnnnnnnnnnnnn"
Format1="                                  zzz,zzz,zzz,zzz  tt/dd/yyyy  hh:mm:ss  aaaa"
IgnoreErrors=0
Debug=0
UnixPath=1
SkipDirsInFileList=1
SkipEmptyNames=1
BatchUnpack=1
SearchForUglyDirs=0
SkipLIST=1
All "n" in "Format0=" must be in one line and without spaces! (Just splitted it here to multiple lines to avoid a horizontal scrollbar in this posting)


This config works fine for a single file as well as for multiple files. But...


Q1

Unfortunately I can't the "Add"-action get working for directories. Of course I've tried the "%F" variable (in this case for a single marked directory) too. "%L", "%l" and "%F" always add a trailing "\" to the pathname(s), which leads SBC to total confusion. This possible workaround

Code: Select all

Add="%P c -m3 -r -pr %AQA %F*"
doesn't work, because the asterik "*" is suppressed (by MultiArc?)

(Same problem with my configuration for UHarc 0.6a)

Because I didn't find a solution, I've set the "SkipDirsInFileList"-flag to 1 to avoid funny, but unwanted results.

Which changes in multiarc.ini are necessary to solve the problem?


Q2

SBC lists filedates with thousands separators. ATM, only the last 3 digits are shown in archive listing (the size of a 20.480-byte-file is shown as "480", for instance).

Which changes in multiarc.ini should be made to get these separators ignored?


Q3

In archive listings, german umlauts are displayed in OEM encoding:
"Kündigung.doc" --> "K³ndigung.doc"

Which switches / modifier can be used to avoid this? (The "A"NSI modifier doesn't effects the files within the filelist ("-@%L" parameter)).

Not that important, because those files are extracted correctly: "K³ndigung.doc" --> "Kündigung.doc"


Thanks in advance for any help! :)

Regards, van Dusen



EDIT 30-07-2005

Configuration file for SBC 0.970Rev2 substituted by a slightly modified version.

Configuration file for UHarc 0.6a added (doesn't work for directories as well :( )...
... here it is (perhaps somebody search for such a config somewhere down the road :) ) :

Code: Select all

[UHarc MultiFiles]
ID=55 48 41 
IDPos=0
Extension=uha
Archiver=C:\Programme\WinUHA\UHarc.exe
List="%P l -d2 -y %a"
Start="^-------------------------------------------------------------------------------"
End="^-------------------------------------------------------------------------------"
Extract="%P x -d2 -y -idle %a @%LQ"
ExtractWithPath="%P x -d2 -y -idle %a @%LQ"
Test="%P t -idle %a"
Add="%P a -d2 -ed+{ %S} -mm+ -md+ -md16384 -b32768 -idle %AQ @%LQ"
Move="%P m -d2 -ed+{ %S} -mm+ -md+ -md16384 -b32768 -idle %AQ @%LQ"
AskHistory0=-mx
AskHistory1=-m3
AskHistory2=-m2
AskHistory3=-m1
AskHistory4=-mz
AskMode=0
Description="UHarc 0.6a"
Format0="nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
         nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
         nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
         nnnnnnnnnnnnnnnn"
Format1="                              zzzzzzzzzz  dd TTT yyyy  hh mm ss  aaaa"
IgnoreErrors=0
Debug=0
UnixPath=0
SkipDirsInFileList=1
SkipEmptyNames=1
BatchUnpack=1
SearchForUglyDirs=0
SkipLIST=1
All "n" in "Format0=" must be in one line and without spaces! (Just splitted it here to multiple lines to avoid a horizontal scrollbar in this posting)

Regards, van Dusen
TychoBarfy
Senior Member
Senior Member
Posts: 350
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Post by *TychoBarfy »

This is my modified UHA section. %AOA added for use with file/folder names with higher ascii. BatchUnpack=0 so only marked dir is unpacked not all other non-marked empty dirs. Works fine with even long file/folder names.

Code: Select all

; -----------------------------------------------------------------------
; ***********************************************
; UHARC 0.6a sfx / 0.6a /  0.4b
; ***********************************************
; -----------------------------------------------------------------------
; UHARC 0.6a Sfx-Stub (c) 1997-2005 by Uwe Herklotz 06 Feb 2005
; Freeware for non-commercial use, contact: uwe.herklotz@gmx.de
; http://info.elf.stuba.sk/packages/pub/pc/pack/uharc06b.zip
; needs uharcsfx.exe from package in same dir as uharc06a.exe
; -----------------------------------------------------------------------
[Uharc06a_SFX]
Description="UHarc SFX !after! packing ren .uha_exe -> .uha.exe"
Extension=UHA_EXE
Archiver=packer\uharc06a.exe
SkipDirsInFileList=1
SkipLIST=1
BatchUnpack=0
Debug=0
Start="^-------------------------------------------------------------------------------"
End="^-------------------------------------------------------------------------------"
Format0="nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"
Format1="                              zzzzzzzzzz  dd-TTT-yyyy  hh:mm:ss  aaaa  cccccccc"
List=%P l -d2 -b32784 -idle -y %AQA
Add=%P a -sfx -pr -op -d0 -ed+ -mm+ -md16384 -b32784 -idle -y{ %S} %AQA @%LQ
Move=%P m -sfx -pr -op -d0 -ed+ -mm+ -md16384 -b32784 -idle -y{ %S} %AQA @%LQ
;With AskMode=2 MA pops up to ask you whether to take mx,m1,m2,m3,mz
;disabled here for use on a CD, otherwise MA wants to write into the INI
AskMode=0
AskHistory0=-mx
AskHistory1=-m1
AskHistory2=-m2
AskHistory3=-m3
AskHistory4=-mz
SkipLIST=1
; -----------------------------------------------------------------------
; UHARC 0.6a high compression multimedia archiver BETA version
; Copyright (c) 1997-2005 by Uwe Herklotz 06 Feb 2005
; Freeware for non-commercial use, contact: uwe.herklotz@gmx.de
; http://info.elf.stuba.sk/packages/pub/pc/pack/uharc06b.zip
; -----------------------------------------------------------------------
[Uharc06a]
Description="UHarc 0.6a"
Extension=UHA
Archiver=packer\uharc06a.exe
ID=55 48 41 06
SkipDirsInFileList=1
SkipLIST=1
BatchUnpack=0
Debug=0
Start="^-------------------------------------------------------------------------------"
End="^-------------------------------------------------------------------------------"
Format0="nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"
Format1="                              zzzzzzzzzz  dd-TTT-yyyy  hh:mm:ss  aaaa  cccccccc"
List=%P l -d2 -b32784 -idle -y %AQA
Extract=%P e -b32784 -idle -y %AQA @%LQ
ExtractWithPath=%P x -b32784 -idle -y %AQA @%LQ
Add=%P a -pr -op -d0 -ed+ -mm+ -md16384 -b32784 -idle -y{ %S} %AQA @%LQ
Move=%P m -pr -op -d0 -ed+ -mm+ -md16384 -b32784 -idle -y{ %S} %AQA @%LQ
;With AskMode=2 MA pops up to ask you whether to take mx,m1,m2,m3,mz
;disabled here for use on a CD, otherwise MA wants to write into the INI
AskMode=0
AskHistory0=-mx
AskHistory1=-m1
AskHistory2=-m2
AskHistory3=-m3
AskHistory4=-mz
SkipLIST=1
; -----------------------------------------------------------------------
; UHARC 0.4 (Win32 version)
; http://www.nemu.to/file/uharc04.zip
; -----------------------------------------------------------------------
[Uharc04]
Description="Uharc 0.4 - Beta"
Extension=UHA
Archiver=packer\uharc04b.exe
ID=55 48 41 04
IDPos=0
SkipDirsInFileList=1
BatchUnpack=0
Debug=0
Start="^-------------------------------------------------------------------------------"
End="^-------------------------------------------------------------------------------"
Format0="nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"
Format1="                              zzzzzzzzzz  dd-TTT-yyyy  hh:mm:ss  aaaa  cccccccc"
List=%P l -d2 -y{ %S} %AQA
Extract=%P e -b32784 -idle -y %AQA @%LQ
ExtractWithPath=%P x -b32784 -idle -y %AQA @%LQ
Add=%P a -pr -op -d0 -ed+ -mm+ -md16384 -b32784 -idle -y{ %S} %AQA @%LQ
Move=%P m -pr -op -d0 -ed+ -mm+ -md16384 -b32784 -idle -y{ %S} %AQA @%LQ
;With AskMode=2 MA pops up to ask you whether to take mx,m1,m2,m3,mz
;disabled here for use on a CD, otherwise MA wants to write into the INI
AskMode=0
AskHistory0=-mx
AskHistory1=-m1
AskHistory2=-m2
AskHistory3=-m3
AskHistory4=-mz
SkipLIST=1
; -----------------------------------------------------------------------
wincmd.ini

Code: Select all

[PackerPlugins]
...
uha_exe=21,%COMMANDER_PATH%\plugins\wcx\multiarc\multiarc.wcx
uha=215,%COMMANDER_PATH%\plugins\wcx\multiarc\multiarc.wcx
...
Here's a thread to my multiarc.ini:
http://ghisler.ch/board/viewtopic.php?p=76032#76032
Post Reply