Total7zip

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Total7zip

Post by *petermad »

Are you sure it's a tar file
Not 100%, but the file size is close to the size of tar files made with TC's internal tar packer, and the file size is very big, indicating no compression.

how does the packer know to create tar from that extension ?
I don't know, but i works. I have the: 7zip_tar=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx setting from the readme.rtf file that comes with the plugin.
total7zip version...which one are you using ?
Version: 0.8.5.6
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
aviasd
Junior Member
Junior Member
Posts: 84
Joined: 2013-07-02, 18:28 UTC
Location: Israel

Re: Total7zip

Post by *aviasd »

Just replied a couple of minutes before you, see my answer above.
I'm using version 0.8.5.6 as well
When you try to add a file to the tar, does the packer see it as tar or 7zip_tar ? It's strange we're getting different behaviours..
What will Total commander be like 10 years from now?
Tc 9.51 Final, #351732 Single, Win7x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Total7zip

Post by *petermad »

TC obviously uses Total7Zip for the .7zip_tar file. If I rename the file to .tar I can add/update files without problems.

Another proof that it is the Total7Zip plugin that is ben used for .7zip_tar files is that if I change:

Code: Select all

7zip_tar=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
to

Code: Select all

7zip_tar=733,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
which disables the ability to modify existing archives - then I get a message if I try to add a file, that it is not possible.


Here is my entier [PackerPlugins] section:

Code: Select all

[PackerPlugins]
bat=279,%COMMANDER_PATH%\PLUGINS\WCX\makebat\makebat.wcx
bz2=251,%COMMANDER_PATH%\PLUGINS\wcx\wcx_bz2\bzip2dll.wcx
bzip2=251,%COMMANDER_PATH%\PLUGINS\wcx\wcx_bz2\bzip2dll.wcx
blat=277,%COMMANDER_PATH%\PLUGINS\wcx\Blat\blat.wcx
lst=21,%COMMANDER_PATH%\PLUGINS\wcx\diskdir\diskdir.wcx
CopyTree=277,%COMMANDER_PATH%\PLUGINS\wcx\CopyTree\CopyTree.wcx
sqx=607,%COMMANDER_PATH%\PLUGINS\wcx\Total SQX\TotalSQX.wcx
chm=479,%COMMANDER_PATH%\PLUGINS\WCX\CHMDir\CHMDir.wcx
its=479,%COMMANDER_PATH%\PLUGINS\WCX\CHMDir\CHMDir.wcx
icl=15,%COMMANDER_PATH%\PLUGINS\WCX\ICLRead\ICLRead.wcx
zpaq=535,%COMMANDER_PATH%\PLUGINS\wcx\zpaq\zpaq.wcx
png=327,%COMMANDER_PATH%\PLUGINS\wlx\Imagine\Imagine.wcx 
gif=287,%COMMANDER_PATH%\PLUGINS\wcx\GifWcx\GifWcx.wcx
xlst=31,%COMMANDER_PATH%\PLUGINS\wcx\DiskDirExtended\DiskDirExtended.wcx64
7z_7z=223,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx
7z_jar=95,%COMMANDER_PATH%\PLUGINS\WCX\7zip\7zip.wcx
7z=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
wim=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
xz=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
flv=964,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_tar=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_7z=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_zip=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_gzip=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_bzip2=731,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_cab=708,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_jar=212,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_arj=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
7zip_rar=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
iso=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
jar=212,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
zip0=277,%COMMANDER_PATH%\PLUGINS\wcx\Zip2Zero\zip2zero.wcx
setfolderdate=263,%COMMANDER_PATH%\PLUGINS\wcx\SetFolderDate\setfolderdate.wcx

[PackerPlugins64]
$checksum$=172010214
exts=bat*bz2*bzip2*blat*lst*CopyTree*sqx*chm*its*icl*zpaq*png*gif*xlst*7z_7z*7z_jar*7z*7zip*wim*xz*flv*7zip_tar*7zip_7z*7zip_zip*7zip_gzip*7zip_bzip2*7zip_cab*7zip_jar*7zip_arj*7zip_rar*iso*jar*zip0*setfolderdate*
]
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Total7zip

Post by *petermad »

I just tried to put:

Code: Select all

tar=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
In the [PackerPlugins] section - tghen I can confirm that tryong to add a file to a .tar archive deletes the whole content of the archive and adds the file.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
aviasd
Junior Member
Junior Member
Posts: 84
Joined: 2013-07-02, 18:28 UTC
Location: Israel

Re: Total7zip

Post by *aviasd »

Petermad

You're right,
Removing:

Code: Select all

tar=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
And having just:

Code: Select all

7zip_tar=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
In the config, makes working with tar files work as expected (without even having to choose 7zip_tar in the packer config, just tar is enough)

I'm certain I've checked this with this setting 3-4 times before I posted, and it was not working.. But now it is... odd...

Anyway, thanks for helping me solve this :D :D

PS - thanks for your [PackerPlugins] section too, it gave me a few pointers :)
What will Total commander be like 10 years from now?
Tc 9.51 Final, #351732 Single, Win7x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Total7zip

Post by *petermad »

Notice that with:

Code: Select all

7zip_tar=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
it is only the packing that is done with the Total7Zip plugin. Opening .tar files and extracting, adding, updating or deleting files is done by TC's built-in Tar function.

There doesn't seem to be any benefit from packing with Total7Zip compared to the built-in Tar packer - archives are actually a few 100 bytes bigger when packed with Total7Zip.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Total7zip

Post by *Usher »

petermad wrote: 2020-01-26, 10:35 UTC There doesn't seem to be any benefit from packing with Total7Zip compared to the built-in Tar packer - archives are actually a few 100 bytes bigger when packed with Total7Zip.
Check filename encoding and you will understand which one is better…
Andrzej P. Wozniak
Polish subforum moderator
User avatar
aviasd
Junior Member
Junior Member
Posts: 84
Joined: 2013-07-02, 18:28 UTC
Location: Israel

Re: Total7zip

Post by *aviasd »

I Initially looked at the plugin for performance when opening a 2Gb .tgz file.

I mistakenly thought it was tar performance issue but it was gzip issue.

TC internal unpacker takes about 35 seconds to open a 2GB archive while total7zip takes about ~14 for the same file.

For tar archives I don't see any difference in performance really but maybe for the file encoding it's worth using the plugin.
What will Total commander be like 10 years from now?
Tc 9.51 Final, #351732 Single, Win7x64
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Total7zip

Post by *Usher »

It's not about performance. Files in tar are stored, so there shouldn't be any difference in reading speed. The difference is in metadata stored in the archive. Some tar implementations aren't fully compliant with standard specification (f.e. don't save some metadata or add some padding after the end of data stream), while 7-zip always tries to strictly follow the standard (though some compression methods may be unsupported - in case of archive with compression).
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Christo
Junior Member
Junior Member
Posts: 13
Joined: 2014-10-25, 11:30 UTC

Re: Total7zip

Post by *Christo »

Hi

I would like to know, can this plugin edit .rar files (Add, delete files and even folders) of existing rar's and handle them as a folder.
with this plugin I seem to be able to copy files in but not delete or manipulate folders.

I original added this plugin to handle 7z and it does all of above perfectly, very happy. I can do this for zip and most other formats.
I cant seem to get rar to work, It is probable just some simple adjustment I am missing or messed up.

I have played with variations of

7zip_rar=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
rar=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
and the codes 196 and 735 but i am not sure what the codes mean or where to get meaning, i must not be searching for correct term

I get "Incorrect function" error when deleting.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Total7zip

Post by *Horst.Epp »

Christo wrote: 2020-06-27, 13:02 UTC Hi

I would like to know, can this plugin edit .rar files (Add, delete files and even folders) of existing rar's and handle them as a folder.
with this plugin I seem to be able to copy files in but not delete or manipulate folders.

I original added this plugin to handle 7z and it does all of above perfectly, very happy. I can do this for zip and most other formats.
I cant seem to get rar to work, It is probable just some simple adjustment I am missing or messed up.

I have played with variations of

7zip_rar=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
rar=196,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
and the codes 196 and 735 but i am not sure what the codes mean or where to get meaning, i must not be searching for correct term

I get "Incorrect function" error when deleting.
Of course it can't update RAR files.
This is an license issue and you need WinRar or other tools from RARLAB.
There are no other tools allowed to write or edit RAR files.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Christo
Junior Member
Junior Member
Posts: 13
Joined: 2014-10-25, 11:30 UTC

Re: Total7zip

Post by *Christo »

So even if I have a winrar licensed copy installed it wont work.

I can obviously edit rar files using winrar but using total commander is so much better.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Total7zip

Post by *Horst.Epp »

Christo wrote: 2020-06-27, 13:48 UTC So even if I have a winrar licensed copy installed it wont work.

I can obviously edit rar files using winrar but using total commander is so much better.
It works if you set the WinRar path under RAR packer in the TC Packer config
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Christo
Junior Member
Junior Member
Posts: 13
Joined: 2014-10-25, 11:30 UTC

Re: Total7zip

Post by *Christo »

I do appreciate your time, thanks

That path has been set even before I tried this plugin. I tried the rar.exe and the winrar.exe both with same results.
I also tried it with the "use internal un-rar if possible set and unset.

The shortcuts alt+F5 and alt+f6 for Rar works fine but not the use it as a folder part. I can just browse into the the rar and copy files in but somehow the delete no go. I have a fairly new WinRAR 5.71 and an older one 3.3 but i have same result with both.

I will remove the plugin completely and remove the path and re-test how it works with no exe set, and then set it and so on and check the difference in behavior.

Thanks
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Total7zip

Post by *Horst.Epp »

Christo wrote: 2020-06-27, 15:52 UTC I do appreciate your time, thanks

That path has been set even before I tried this plugin. I tried the rar.exe and the winrar.exe both with same results.
I also tried it with the "use internal un-rar if possible set and unset.

The shortcuts alt+F5 and alt+f6 for Rar works fine but not the use it as a folder part. I can just browse into the the rar and copy files in but somehow the delete no go. I have a fairly new WinRAR 5.71 and an older one 3.3 but i have same result with both.

I will remove the plugin completely and remove the path and re-test how it works with no exe set, and then set it and so on and check the difference in behavior.

Thanks
There is no plugin required for TC to support WinRAR.
Only the correct path to the WinRAR.exe in the TC config as I said above.
I can add and delete files and create folders in an open RAR file in TC.
I can't copy or move folders from the other TC pane into the open rar.
I have WinRAR version 5.91 beta 1
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Post Reply