.Zip File

A

AlexL [Xceed]

With Xceed Zip for .NET, ($299), it takes but a single line of code:

QuickZip.Zip( @"d:\test.zip", true, true, false, @"d:\file.txt" );

The middle parameters represent things like specifying whether
existing files will be overwritten and if the directory structure will
be preserved.

Of course, if you need more flexibility, it Xceed Zip for .NET offers
a full Object Oriented FileSystem object model for handling Zip files,
Tar, GZip, files on FTP servers, etc.

http://www.xceedsoft.com/products/zipnet

If you are looking for a free component, try SharpZipLib
(http://www.sharpziplib.com)
 
A

AlexL [Xceed]

Sorry, that was 1 line of C# code. The VB.NET code would be:

QuickZip.Zip( "d:\test.zip", True, True, False, "d:\file.txt" )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top