Custom ZIP/UNZIP

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
miskox
Posts: 553
Joined: 28 Jun 2010 03:46

Custom ZIP/UNZIP

#1 Post by miskox » 19 Sep 2022 03:55

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

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Custom ZIP/UNZIP

#2 Post by aGerman » 19 Sep 2022 04:59

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

miskox
Posts: 553
Joined: 28 Jun 2010 03:46

Re: Custom ZIP/UNZIP

#3 Post by miskox » 19 Sep 2022 05:06

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

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Custom ZIP/UNZIP

#4 Post by aGerman » 19 Sep 2022 05:25

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

miskox
Posts: 553
Joined: 28 Jun 2010 03:46

Re: Custom ZIP/UNZIP

#5 Post by miskox » 20 Sep 2022 01:18

Thanks Steffen!

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

Saso

Post Reply