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