Search Wiki:

DotNetZip Examples

Need to create a zip file from within a .NET application?
Do you want to unzip a zip file from within a Windows Forms application? Create a zip file from within an ASP.NET page?
Display the contents of a zip file from within a Smart Device app? Show the contents of a zip file in a WinForms TreeView? Modify a .docx file programmatically? Do you want to compress backups as part of a SQL Server Integration Services pipeline? Zip things from a powershell script? DotNetZip can help you do all of these things, and more. This set of code pages shows you how.

DotNetZip is a FREE open-source library that enables .NET applications to read and write ZIP files. Packaged as a single assembly (Ionic.Zip.dll), DotNetZip is a simple and easy way to include ZIP capability into your applications.

DotNetZip supports many ZIP features, including password-protected files, ZIP64 files, and zipfiles with entries that have Unicode filenames or comments. This page provides code examples for DotNetZip.


Find out more about DotNetZip on http://DotNetZip.codeplex.com/.
Browse the Online reference doc http://cheeso.members.winisp.net/DotNetZipHelp.

Some example apps:

Create a ZIP within ASP.NET

DotNetZip1.png

Create a ZIP within WinForms (C#)

DotNetZip.jpg

Create a ZIP within WinForms (VB)

DotNetZip-VB.jpg

Create a ZIP within a Console app (C#)

DotNetZip-Console-1.png

Show a ZIP within a TreeView in WinForms (VB)

TreeViewZip-VB.png

Examples with code

Create a Zip within ASP.NET
Create a zip within WinForms
Display a zip within a WinForms (VB) TreeView
Create a Zip from a Console app
Create a Zip from within PowerShell
Deploy an ASP.NET app as a ZIP file
A Windows Service (VB) daemon that unzips files automatically

Last edited Jul 7 at 2:46 PM  by Cheeso, version 20
Updating...
Page view tracker