Results 1 to 3 of 3

Thread: Need to zip files via VB.NET...help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Need to zip files via VB.NET...help

    I'm making a back-up program that will need to compress many files into a TAR file before sending them off. Is there a command-line based program I can shell to, to get this done? Or possible call something directly from VB.NET? I know there are alot of programs like WinZIP and winRAR, but I need something very light weight with minimal impact to the system.

    David

  2. #2
    Member
    Join Date
    Mar 2008
    Posts
    33

    Re: Need to zip files via VB.NET...help

    For command line tools, you could try IZArc

    http://www.izarc.org/download.html

    Or you could try SharpZipLib which is a .Net library that you could add to your project

    http://www.icsharpcode.net/OpenSource/SharpZipLib/

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Need to zip files via VB.NET...help

    I've posted code that shows how to use SharpZipLib in the VB.NET CodeBank forum.

    http://www.vbforums.com/showthread.php?t=360169

    That was for an older version but what's there should still be valid.

    There's also another post in the CodeBank forum that uses Java types via J#. This may seem advantageous as you don't need a third-party library. That said, you would need to install the J# redistributable along with your app, which is larger than the SharpZipLib library. Also, J# has been discontinued by Microsoft so there may be issues as a result at some point.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width