AutoIt
AutoIt
Open and Unzip an AES Encrypted Zip
See more Zip Examples
Open and unzip an AES encrypted Zip.Chilkat AutoIt Downloads
Local $bSuccess = False
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oZip = ObjCreate("Chilkat.Zip")
$bSuccess = $oZip.OpenZip("/myZips/aes.zip")
If ($bSuccess <> True) Then
ConsoleWrite($oZip.LastErrorText & @CRLF)
Exit
EndIf
; Set the password needed to unzip.
; This password must match the password used when the zip
; was created.
$oZip.DecryptPassword = "myPassword"
Local $iUnzipCount
; Unzip the .zip into /unzipDir.
; Returns the number of files and directories unzipped.
$iUnzipCount = $oZip.Unzip("/unzipDir/")
If ($iUnzipCount < 0) Then
ConsoleWrite($oZip.LastErrorText & @CRLF)
Else
ConsoleWrite("Success!" & @CRLF)
EndIf