Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / March 2006

Tip: Looking for answers? Try searching our database.

Compress Files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amelyan - 07 Mar 2006 16:30 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
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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.