AutoIt
AutoIt
bz2 Compress File
Compress a file to the bz2 file format.Chilkat AutoIt Downloads
Local $bSuccess = False
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oBz2 = ObjCreate("Chilkat.Bz2")
; Compress the file qa_data/hamlet.xml to create qa_output/hamlet.bz2
$bSuccess = $oBz2.CompressFile("qa_data/hamlet.xml","qa_output/hamlet.bz2")
If ($bSuccess <> True) Then
ConsoleWrite($oBz2.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite("Success." & @CRLF)