Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python 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 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 |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.