|
-
Apr 25th, 2008, 04:38 PM
#1
Thread Starter
Addicted Member
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
-
Apr 25th, 2008, 07:02 PM
#2
Member
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/
-
Apr 25th, 2008, 09:28 PM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|