Use WinRAR as default ZIP packer / unpacker (ZIP2RAR)

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1050
Joined: 2004-07-29, 11:00 UTC

Use WinRAR as default ZIP packer / unpacker (ZIP2RAR)

Post by *ZoSTeR »

I noticed a big performance improvement when using WinRAR (Zip mode) instead of the internal TC Zip functionality so I wrote a little translator to use WinRAR as the default Zip application.

These are two short AutoIt scripts (source included) that translate the PKZIP specific command line switches and expand the short file names in the file list.

Put them in the TC folder along with WinRAR.exe and configure TC as follows:

Packer -> Zip Packer: zip2rar.exe
Use Internal disabled

Packer -> Zip Unpacker: unzip2rar.exe
Use Internal disabled

Use the debug versions to show the command lines.

Please report any errors or suggestions and/or your performance measurements.

Download
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

DDL to avoid RapidShare delay and captcha.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
novozhilov
Junior Member
Junior Member
Posts: 2
Joined: 2008-05-09, 18:39 UTC

Post by *novozhilov »

Thanks. Interesting project.
So far no problems with basic usage!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

When entering an archive and trying to extract a directory containing subdirectories, this is the result:

Code: Select all

---------------------------
Total Commander
---------------------------
Unfortunately, unpacking directories from a ZIP subdirectory cannot be realised with PKUNZIP with reasonable expense!
Please use the built-in unzipper or unzip from the ZIP file's ROOT directory!
---------------------------
OK   
---------------------------
Looks like the hardcoded TC packer integration is rather limited and not meant to be tricked with a proxy unpacker. ;)

Icfu
This account is for sale
tosbsas
Senior Member
Senior Member
Posts: 428
Joined: 2003-12-19, 13:12 UTC
Location: Lima, Perú
Contact:

Post by *tosbsas »

cannot confirm that, but I get an empty folder outside of the zip file. When using internal unzipper folder is filled with the data its suposed to contain

Ruben
A New Generation transformed by the Power of God
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2icfu
The problem is that there is no command to tell pkunzip to unpack dirs from a zip subdir and NOT keep the full name, but only the relative name to the subdir. Since there is no such command, there is also no way to tell it to a replacement unpacker...
Author of Total Commander
https://www.ghisler.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

WinRAR doesn't have these limitations:

Code: Select all

WinRAR.exe x "X:\path\to\bla.zip" directory\subdirectory
So, the problem is that the command line is limited to the abilities of PKZIP/PKUNZIP.

It would be much better if all parameters would be freely adjustable, with the standard PK(UN)ZIP parameters being the default.

If would be even better if TC would offer a way to integrate custom command line packers also for different extensions, for example for .7z. If you need something to work on, this would be nice for TC 8... ;)

Icfu
This account is for sale
Post Reply