Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Unzip a Zip File
How to unzip a Zip archive in Visual Basic .NET Dim zip As New Chilkat.Zip() ' Anything begins the 30-day trial Dim unlocked As Boolean unlocked = zip.UnlockComponent("30-day trial") If (Not unlocked) Then MsgBox(zip.LastErrorText) Exit Sub End If Dim success As Boolean success = zip.OpenZip("test.zip") ' Unzip to a specific directory: Dim count As Integer count = zip.Unzip("c:/temp/myUnzipDir") If (count = -1) Then MsgBox(zip.LastErrorText) Else MsgBox("Unzipped " + Str(count) + " files and directories") End If ' Alternatively: ' Unzip creating a new subdirectory named "tree" ' under the current working directory. Dim count As Integer count = zip.Unzip("tree") If (count = -1) Then MsgBox(zip.LastErrorText) Else MsgBox("Unzipped " + Str(count) + " files and directories") End If End Sub Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.