• I removed the www from the URL, please update your bookmarks and pay attention to the bottom of the screen if using Google Chrome to allow push notifications again.

how to zip a folder

paldebu78

Member
Joined
Sep 14, 2006
Messages
5
Programming Experience
Beginner
I have a master folder named folder. within this folder I have several other folders. Now I want to zip the master folder. Is it possible to zip a folder in VB.net? Can anybody provide me a sample code?:(
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,058
Location
Sydney, Australia
Programming Experience
10+
The .NET Framework has no native support for the ZIP format. There are various options available. You can create your own ZIP library in J# using the Java class library's ZIP support, then reference that library in your VB projects. You can also use the open source #ZipLib, which is written in C#, and reference that in your VB code. There are also various commercial components available to do the job.

Another option is to create your own TAR library to put all files in the one TAR archive and then use .NET's native GZIP support to create a tarball, i.e. a GZIPped TAR file. This is not a viable option if you specifically need a ZIP file, but most commercial compression tools will read TGZ files.
 

Administrator

VB.NET Forum Admin
Joined
Jun 3, 2004
Messages
1,461
Programming Experience
10+
I have a master folder named folder. within this folder I have several other folders. Now I want to zip the master folder. Is it possible to zip a folder in VB.net? Can anybody provide me a sample code?:(
You can get a third party component such as IP*Works! Zip from /n software or XCeed Zip from XCeed Software, etc.
 
Top Bottom