Page 1 of 1

Custom ZIP/UNZIP

Posted: 19 Sep 2022 03:55
by miskox
I don't know where to post this. So if anyone could help we could delete this thread when I get some useful info.

In one of my .bat files I use

Code: Select all

zip.exe -r -9 -q -X -m zipfile.zip folder1 folder2
zip.exe    -9 -q -X -P zippassword zipfile.zip file1 file2 file3

Code: Select all

unzip.exe -qq -t -P zippassword %local_filename% >nul 2>nul
unzip.exe -Z -1 %local_filename% >unzip.tmp
Currently I use

Code: Select all

zip.exe (file size is 141872 bytes):
Copyright (c) 1990-2006 Info-ZIP - Type 'zip "-L"' for software license.
Zip 2.32 (June 19th 2006). Usage:

unzip.exe (159744 bytes):
UnZip 5.50 of 17 February 2002, by Info-ZIP.
Why I want smaller file sizes? Because I have these two files embedded in the .bat file.

I would like to have *only* the switches needed to be supported so this would probably make .exe files smaller in size.

I use maximum compress though there is no need for the maximum compression if it would make .exe file even smaller.

Any ideas where to post this 'request'?

Thanks.
Saso

Re: Custom ZIP/UNZIP

Posted: 19 Sep 2022 04:59
by aGerman
Saso,

The project seems to be hosted at SourceForge.
https://sourceforge.net/projects/infozip/
In the "Support" tab you'll find the related links for getting help.
There's not much hope that they compile custom executables for you though.

Do you still need to get this working on XP? On more recent Windows versions ZIP files are supported as a kind of compressed Shell folders where VBS or JS can be used along with the methods of the "Shell.Application" Com interface.

Steffen

Re: Custom ZIP/UNZIP

Posted: 19 Sep 2022 05:06
by miskox
XP support would be nice.
I just thought that maybe some switches could be 'deselected' at compile/link time...

It would be great if there would be something like 'make your own zip/unzip' where user would just select/deselect switches...

Thanks.
Saso

Re: Custom ZIP/UNZIP

Posted: 19 Sep 2022 05:25
by aGerman
Good luck! ¯\_(ツ)_/¯

FWIW As it seems you want the file password-protected, there's no native way on Windows to do that. Even not on Win 11. So, yeah, you need a 3rd party tool anyways. Maybe try to find one that both zips and unzips with a single executable.

Steffen

Re: Custom ZIP/UNZIP

Posted: 20 Sep 2022 01:18
by miskox
Thanks Steffen!

Ticket posted. Let's see. Maybe this thread could be deleted.

Saso