Recompressing ZIP

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
RazerBack
Junior Member
Junior Member
Posts: 15
Joined: 2003-07-01, 23:51 UTC
Location: Canada

Recompressing ZIP

Post by *RazerBack »

I have 3k of zips in one folder, is it possible to select all of them and rezip them so that they are using the highest possible compression each.

I don't want to manually unzip them to another folder and then zip them up again.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Re: Recompressing ZIP

Post by *Clo »

RazerBack wrote:I have 3k of zips in one folder, is it possible to select all of them and rezip them so that they are using the highest possible compression each.

I don't want to manually unzip them to another folder and then zip them up again.
:D Hello!
You mean really 3,000 ZIPs?
:( I don't know a way to do the handling you told automatically...
¤ In theory, that could be possible using a batch script or so...
:idea: Temporarily, you could repack / move the whole ZIPs "as is" into a single RAR3, that could save some free space...
:) Best regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 16029
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Recompressing ZIP

Post by *petermad »

RazerBack wrote: I don't want to manually unzip them to another folder and then zip them up again.
Well I can't tell you a way without a little manual work - and there is a disadvantage to it :cry: (see later), but you could try this - it is a bit of a hack:

1. Open your dir with your zip files in one side of TC and an enpty dir in the other side. Make sure that ZIP-packing is set up to max compression.

2. Mark ALL your zip files and press Alt-F9.

3. Check "Unpack path names if stored with files" AND check "Unpack each archive to a separate subdir (name of the archive)".

4. Sit back and enjoy the unpacking - and hope you have enough free disk space :) .

5. Open a new empty dir in the opposite panel of the newly unpacked dirs.

6. Mark ALL the unpacked dirs and pres Alt-F5.

7. Check "Also pack path names (only recursed)", "Recursively pack subdirectories" AND "Move to archive" AND "Create separate files, one per selected file/dir".

8. Enjoy the packing. Now really hope you have enough disk space :D .


The disadvantage of this is that each new zipfile has the content of the old zipfile within a subdir in the new zipfile (in stead of in the "root" of the zipfile).

If none of your original zipfiles has any subdirs inside of them, then this disadvantage can be avoided by not selecting "Also pack path names (only recursed)" when repacking - but ONLY then :!:

Maybe this can be of some help :?:
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

WinRAR has this feature called "Convert archives". It will convert the added archives to the selected format (rar/zip) and it will only keep the original, if the size of the converted archive is smaller than the repacked.
Of all the planets I've been to, this one is my favorite.
Post Reply