[TC11rc1] 7-Zip trims spaces in the @ file list ; Request to add file list %UFQ %WFQ with quotes !

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
PiotrMPPL
Junior Member
Junior Member
Posts: 44
Joined: 2018-10-26, 07:04 UTC

[TC11rc1] 7-Zip trims spaces in the @ file list ; Request to add file list %UFQ %WFQ with quotes !

Post by *PiotrMPPL »

Hi

WARNING !!! 7-Zip trims spaces in the @ file list.
Wildcards or filenames with spaces must be quoted!!!

You may lose files when compressing data with 7-Zip width file list %UF %WF!!!

ex @ list of files %UF %WF

Code: Select all

 Test\
 Image.jpg
You should be like that:

Code: Select all

" Test\"
" Image.jpg"
If you use 7-Zip as your ZIP packer, you will lose files whose names start with a space!!!!

Request to add file list %UFQ %WFQ with quotes
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC11rc1] 7-Zip trims spaces in the @ file list ; Request to add file list %UFQ %WFQ with quotes !

Post by *Horst.Epp »

Not confirmed
The following packer definition works without loosing any spaces for me:
"C:\Program Files\7-Zip\7zg.exe" -mcu=on

It also works using Total7zip and the following button

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a %T"%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y
C:\Program Files\7-Zip\7zFM.exe
Pack selected

0
-1
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [TC11rc1] 7-Zip trims spaces in the @ file list ; Request to add file list %UFQ %WFQ with quotes !

Post by *Stefan2 »

PiotrMPPL wrote: 2023-07-18, 05:02 UTC
Why you didn't answer on the help you got over there ? >>> viewtopic.php?t=79613






 
PiotrMPPL
Junior Member
Junior Member
Posts: 44
Joined: 2018-10-26, 07:04 UTC

Re: [TC11rc1] 7-Zip trims spaces in the @ file list ; Request to add file list %UFQ %WFQ with quotes !

Post by *PiotrMPPL »

You used the %UL list but the problem is with the %FL lists!!!!

a %T"%B"_%|$DATE:YMD_hm| @%FL -aoa -mmt -mx9 -ssw -stl -ssp -y

Please check
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: [TC11rc1] 7-Zip trims spaces in the @ file list ; Request to add file list %UFQ %WFQ with quotes !

Post by *Fla$her »

PiotrMPPL wrote: 2023-07-18, 08:25 UTCYou used the %UL list but the problem is with the %FL lists!!!!
@%FL is an error. There are no problems with lists of full names. The problem is only with @%[UW]F, but it doesn't concern TC in any way, it's a 7-zip problem.
If the list is compiled with .\ before the names, then the packaging goes through without problems.

Just use @%[UW]L. I prefer @%WL -scsUTF-16LE to avoid path length issues.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11rc1] 7-Zip trims spaces in the @ file list ; Request to add file list %UFQ %WFQ with quotes !

Post by *ghisler(Author) »

This isn't a bug in TC, it's a feature request for new placeholders.

Moderator message

Moved to suggestions
Author of Total Commander
https://www.ghisler.com
Post Reply