.Zip File

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Garth Wells

    #1

    .Zip File

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

    Thanks


  • Robinson

    #2
    Re: .Zip File


    "Garth Wells" <nobody@nowhere .comwrote in message
    news:bySQg.4276 $nX4.2362@torna do.texas.rr.com ...
    What's the best way to .zip (compress) a file via vb.net?
    >
    Thanks
    >
    Use the GZipStream class.


    Comment

    • AlexL [Xceed]

      #3
      Re: .Zip File

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

      QuickZip.Zip( @"d:\test.zi p", true, true, false, @"d:\file.tx t" );

      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.



      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" <nobody@nowhere .com>
      wrote:
      >What's the best way to .zip (compress) a file via vb.net?
      >
      >Thanks
      >
      --
      Alex Leblanc
      Xceed Software Inc.

      Comment

      • AlexL [Xceed]

        #4
        Re: .Zip File

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

        QuickZip.Zip( "d:\test.zi p", True, True, False, "d:\file.tx t" )

        On Fri, 22 Sep 2006 11:11:34 -0400, "AlexL [Xceed]"
        <xLeblancA@xcee dsoft.comwrote:
        >With Xceed Zip for .NET, ($299), it takes but a single line of code:
        >
        >QuickZip.Zip ( @"d:\test.zi p", true, true, false, @"d:\file.tx t" );
        >
        >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" <nobody@nowhere .com>
        >wrote:
        >
        >>What's the best way to .zip (compress) a file via vb.net?
        >>
        >>Thanks
        >>
        --
        Alex Leblanc
        Xceed Software Inc.

        Comment

        • Garth Wells

          #5
          Re: .Zip File

          >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....


          Comment

          Working...