HighTechTalks DotNet Forums  

Compress Files

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Compress Files in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Amelyan
 
Posts: n/a

Default Compress Files - 03-07-2006 , 11:30 AM






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,



Reply With Quote
  #2  
Old   
Jon Skeet [C# MVP]
 
Posts: n/a

Default Re: Compress Files - 03-07-2006 , 12:37 PM






<"Amelyan" <bamelyan at wi.rr.com>> wrote:
Quote:
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?
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/OpenSourc...b/Default.aspx

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


Reply With Quote
  #3  
Old   
Kolbis Guy
 
Posts: n/a

Default RE: Compress Files - 03-28-2006 , 05:48 PM



In .NET 2.0 there is a zip lib.
--
Kolbis Guy - System architect and technology consultent.
http://kolbis.blogspot.com/


"Amelyan" wrote:

Quote:
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,




Reply With Quote
  #4  
Old   
Jon Skeet [C# MVP]
 
Posts: n/a

Default RE: Compress Files - 03-29-2006 , 05:07 AM



Kolbis Guy <KolbisGuy (AT) discussions (DOT) microsoft.com> wrote:
Quote:
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.

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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.