ZIPFROMLIST command: archive target name based on source with spaces set in parameters doesn't seem to be supported

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

ZIPFROMLIST command: archive target name based on source with spaces set in parameters doesn't seem to be supported

Post by *DrShark »

In Total Commander 10, it's possible to put the path of both target archive name and the list of files to pack in the Parameters field of a button/menu, and the spaces in archive name should be supported:
The command field must contain the zip file name, and the parameters field the name of the list file. Alternatively, the zip file name may be put at the start of the parameters field, surrounded by double quotes "" if it contains a space.
I tried to create a button which creates an archive with a name of file or directory which it packs by using "%N.zip" in parameters, but if its name has spaces, after pressing of button nothing happens and archive is not created. Button code:

Code: Select all

TOTALCMD#BAR#DATA
zipfromlist -10
"%N.zip" %L
%COMMANDER_PATH%\TOTALCMD64.EXE,21
Pack ZIPX


-1
If to put question mark in front of "%N.zip", the dialog which will appear after pressing the button will show that this way both the whole name and its part before .zip extension are surrounded by quotes separately, so the archve name becomes:

Code: Select all

""name with spaces".zip"
Would be nice if ZIPFROMLIST could ignore (and strip for actual archive name) the extra quotes which appear in the middle of main quotes pair in this case.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ZIPFROMLIST command: archive target name based on source with spaces set in parameters doesn't seem to be supported

Post by *ghisler(Author) »

%N is one of the parameters which gets automatically surrounded with double quotes when it contains spaces. To construct longer names, please use
%O.%E
instead.
Author of Total Commander
https://www.ghisler.com
Post Reply