|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.Zip File"Garth Wells" <nob***@nowhere.com> wrote in message Use the GZipStream class.news:bySQg.4276$nX4.2362@tornado.texas.rr.com... > What's the best way to .zip (compress) a file via vb.net? > > Thanks > >> What's the best way to .zip (compress) a file via vb.net? I'm stuck with .Net 1.x....>> >> Thanks >> > > Use the GZipStream class. 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. 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.
vbCrLf
Querying a database using vb Get value from nested class using reflection Want to know the power-2 based numbers of x OpenGL Refresh problem using CsGL with VB.NET String Comparision Resolving Type mismatch, HOW How to disable the UAC in Vista? How to keep statusStrip at the bottom of the ToolStripContainer Sub(Thing as Object) {thing = new Thing.GetType} ? |
|||||||||||||||||||||||