Page 1 of 1

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

Posted: 2023-07-18, 05:02 UTC
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

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

Posted: 2023-07-18, 06:54 UTC
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

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

Posted: 2023-07-18, 07:03 UTC
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






 

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

Posted: 2023-07-18, 08:25 UTC
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

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

Posted: 2023-07-18, 08:54 UTC
by Stefan2
PiotrMPPL wrote: 2023-07-18, 08:25 UTC You used the %UL list ...

What you asked for, there at viewtopic.php?p=437105#p437105






 

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

Posted: 2023-07-18, 09:41 UTC
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.

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

Posted: 2023-07-18, 10:51 UTC
by ghisler(Author)
This isn't a bug in TC, it's a feature request for new placeholders.

Moderator message

Moved to suggestions