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 an Encrypted ZipDemonstrates how to open an encrypted .zip archive and unzip.
LOCAL loZip LOCAL lnSuccess LOCAL lnUnzipCount loZip = CreateObject('Chilkat.Zip2') * Any string unlocks the component for the 1st 30-days. lnSuccess = loZip.UnlockComponent("Anything for 30-day trial") IF (lnSuccess <> 1) THEN =MESSAGEBOX(loZip.LastErrorText) QUIT ENDIF * Set the password required for decrypting. loZip.DecryptPassword = "myPassword" lnSuccess = loZip.OpenZip("encrypted.zip") IF (lnSuccess <> 1) THEN =MESSAGEBOX(loZip.LastErrorText) QUIT ENDIF * Returns the number of files and directories unzipped. lnUnzipCount = loZip.Unzip("c:/unzipDir") IF (lnUnzipCount < 0) THEN =MESSAGEBOX(loZip.LastErrorText) ELSE =MESSAGEBOX("Success!") ENDIF |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser