Home All Groups Group Topic Archive Search About
Author
22 Sep 2006 2:36 PM
Garth Wells
What's the best way to .zip (compress) a file via vb.net?

Thanks

Author
22 Sep 2006 3:01 PM
Robinson
"Garth Wells" <nob***@nowhere.com> wrote in message
news:bySQg.4276$nX4.2362@tornado.texas.rr.com...
> What's the best way to .zip (compress) a file via vb.net?
>
> Thanks
>

Use the GZipStream class.
Author
23 Sep 2006 8:50 PM
Garth Wells
>> What's the best way to .zip (compress) a file via vb.net?
>>
>> Thanks
>>
>
> Use the GZipStream class.

I'm stuck with .Net 1.x....
Author
22 Sep 2006 3:11 PM
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)


On Fri, 22 Sep 2006 14:36:55 GMT, "Garth Wells" <nob***@nowhere.com>
wrote:

>What's the best way to .zip (compress) a file via vb.net?
>
>Thanks
>

--
Alex Leblanc
Xceed Software Inc.
Author
22 Sep 2006 3:27 PM
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" )

On Fri, 22 Sep 2006 11:11:34 -0400, "AlexL [Xceed]"
<xLebla***@xceedsoft.com> wrote:

Show quoteHide quote
>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)
>
>
>On Fri, 22 Sep 2006 14:36:55 GMT, "Garth Wells" <nob***@nowhere.com>
>wrote:
>
>>What's the best way to .zip (compress) a file via vb.net?
>>
>>Thanks
>>

--
Alex Leblanc
Xceed Software Inc.