[TC 11.00b7] External 7z packer do not compress if name start with a space
Moderators: Hacker, petermad, Stefan2, white
[TC 11.00b7] External 7z packer do not compress if name start with a space
Hi, external zip packer using 7Zip do not compress files or directories that start with a space, best regards.
TC 11.00b7 32Bits / Windows 10 Home 32Bits
Re: [TC 11.00b7] External 7z packer & space character
Not confirmed
Tested with Total7zip plugin
and with 7zg.exe configured as internal Zip packer.
Works in 32bit and x64
Tested with Total7zip plugin
and with 7zg.exe configured as internal Zip packer.
Works in 32bit and x64
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
Bug doesn't appear if you select a directory for example \Docs\ that contain files or
subdirectories that start with a space character.
But if go inside \Docs\ and select all files on these directory, then bug appears when
you try to compress them.
Test were made with 7Zip 22.00 x86 using 7zG.exe configured as internal Zip packer.
When compressing using 7zG.Exe, 7zip shows an error message that translated from
Spanish says "System could not find specified file"
Best regards.
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
Still not confirmed
with your scenario.
In my x64 OS the 7zip installation is also x64 of course.
But 32bit TC has no problems to use the x64 7zg.exe
configured as
"C:\Program Files\7-Zip\7zg.exe" -mcu=on
7z version is 23.0
with your scenario.
In my x64 OS the 7zip installation is also x64 of course.
But 32bit TC has no problems to use the x64 7zg.exe
configured as
"C:\Program Files\7-Zip\7zg.exe" -mcu=on
7z version is 23.0
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
I have tested again after update 7zip to version 23.00 x86 and using a fresh Wincmd.ini but bug appears again, i don't have any 7zip plugin installed. Best regards.
TC 11.00b7 32Bits / Windows 10 22H2 32Bits
TC 11.00b7 32Bits / Windows 10 22H2 32Bits
Last edited by Galizza on 2023-06-15, 14:15 UTC, edited 2 times in total.
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
Are you 100% sure it is a space?Galizza wrote: 2023-06-15, 12:09 UTC Hi, external zip packer using 7Zip do not compress files or directories that start with a space, best regards.
hex 20
dec 32
or some other , unicode sign?
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
I have copied file & directory names to clipboard and pasted it on PsPad, after setting view on Hex edit mode it shows space character as 20, best regards.Stefan2 wrote: 2023-06-15, 14:13 UTC [
Are you 100% sure it is a space?
hex 20
dec 32
or some other , unicode sign?
TC 11.00b7 32Bits / Windows 10 22H2 32Bits
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
My tests are made with dirs and files starting with real spaces and also contain spaces.
None of the tests failed.
Additionaly I tested with my button using the new TC date/time variable and 7z.exe.
This works to.
None of the tests failed.
Additionaly I tested with my button using the new TC date/time variable and 7z.exe.
This works to.
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 -mx9
C:\Program Files\7-Zip\7zFM.exe
Pack selected
-1
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
Horst.Epp wrote: 2023-06-15, 15:23 UTC My tests are made with dirs and files starting with real spaces and also contain spaces.
None of the tests failed.
Additionaly I tested with my button using the new TC date/time variable and 7z.exe.
This works to.
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 -mx9 C:\Program Files\7-Zip\7zFM.exe Pack selected -1
Hi, i have tested
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 -mx9
C:\Program Files\7-Zip\7zFM.exe
Pack selected
-1
Code: Select all
TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7zG.exe"
a %T"%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y -mx9
C:\Program Files\7-Zip\7zFM.exe
Pack selected
-1
with dirs and files starting with real spaces and also contain spaces, and both works perfectly. Also these one from my USERCMD.INI works ok too.
Code: Select all
[em_7zPackSelectedUltra]
Menu=7Zip Pack Selected Ultra
Cmd=C:\Program Files\7-Zip\7zG.exe
Param=a -mx9 -ssw "%T%O.7z" @%UL
Btw, any reason to repeat -mx9 switch twice on your button ?. Best regards.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
Confirmed. It looks like 7zip requires that file names starting with a space must be put in double quotes in the list file.
The same problem happens when deleting files from zip with external 7zip.
The same problem happens when deleting files from zip with external 7zip.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
No, just a copy and paste error from the batch file used before TC 11.Galizza wrote: 2023-06-15, 15:47 UTC
Btw, any reason to repeat -mx9 switch twice on your button ?. Best regards.
Thanks for detecting it

Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
2ghisler(Author)
Tested on Tc 11.00b8, compression bug with file & directory names starting with a space seems fixed, but when deleting a file from zip with external 7zip this error message appears.
"Cannot find external pack program! You need to install and configure
an external packer to handle this specific archive"
Best regards.
TC 11.00b8 32Bits / Windows 10 22H2 32Bits
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.00b7] External 7z packer do not compress if name start with a space
Thanks for confirming the fix!
Please submit a new bug report with new details, I have no problems deleting from 7zip files, even when the file contains spaces.
Please submit a new bug report with new details, I have no problems deleting from 7zip files, even when the file contains spaces.
Moderator message
Moved to fixed bugs.
Last edited by white on 2023-06-22, 10:13 UTC, edited 1 time in total.
Reason: fixed typo
Reason: fixed typo
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com