Click here to Skip to main content
15,883,896 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all, I need a zip library (or a function) that can zip\unzip a few files, i tried zlib or gzip I can't find a solution to archive more than one file in a single .zip (or .tar, or .gzip).

Does anyone have ideas?
Thank you very much
Posted

Here is a nice, well known, opensource project:
http://www.7-zip.org/[^]

Regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Jan-11 11:27am    
This one is the best, looks like - a 5.
Espen Harlinn 18-Jan-11 11:48am    
Thanks SAKryukov!
fjdiewornncalwe 18-Jan-11 11:54am    
7zip is a great project. It works really well.
Espen Harlinn 18-Jan-11 11:59am    
Thanks Marcus - It's a great utility
SpaceSoft 19-Jan-11 9:03am    
I solved using minizip, thank you anyway ;)
To archive multiple files with zlib you need to pack all of them with tar archive first. Tar won't compress the files it just packs multiple files into one. After packing multiple files using tar, apply zip compression on tar archive file.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Jan-11 11:29am    
Can you answer, where to get Tar functionality? Is is needed? -- the question is about doing all programmatically...
Thank you.
--SA
HimanshuJoshi 18-Jan-11 12:09pm    
There is a tar library to do this. http://www.destructor.de/libtar/index.htm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900