I have a bunch of files I need to put into Compressed (zipped) Folder,
MyFiles.zip file, similarly to what Windows XP does when you send files to
compressed zipped folder. What is the simplest way to compress these files
into a .zip?
I found System.IO.Compression, but I am not sure how to use it to do what I
need to do. Does anyone have an example of how to send a bunch of files
into compressed (zipped) folder?
Thanks,
Jon Skeet [C# MVP] - 07 Mar 2006 17:37 GMT
> I have a bunch of files I need to put into Compressed (zipped) Folder,
> MyFiles.zip file, similarly to what Windows XP does when you send files to
[quoted text clipped - 4 lines]
> need to do. Does anyone have an example of how to send a bunch of files
> into compressed (zipped) folder?
System.IO.Compression doesn't give support for actual zip files. You'll
need to use a 3rd party library such as #ZipLib:
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Kolbis Guy - 28 Mar 2006 23:48 GMT
In .NET 2.0 there is a zip lib.

Signature
Kolbis Guy - System architect and technology consultent.
http://kolbis.blogspot.com/
> I have a bunch of files I need to put into Compressed (zipped) Folder,
> MyFiles.zip file, similarly to what Windows XP does when you send files to
[quoted text clipped - 6 lines]
>
> Thanks,
Jon Skeet [C# MVP] - 29 Mar 2006 11:07 GMT
> In .NET 2.0 there is a zip lib.
There are compression classes, but nothing to create a zip file. As I
said before, using a third party library like #ZipLib is the way to go.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too