Jump to content

Search the Community

Showing results for tags 'zip'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum
  • AutoIt

Calendars

  • Community Calendar

Found 11 results

  1. Here the this wiki page with list of available UDFs for data compression. For my tasks I only need ZIP support, so I started looking at pure AutoIt UDFs without any 3rd party dlls. And found out that most of available realizations uses standard ("native method") Windows dll - "zipfldr.dll". So for now I chose ZIP UDF by wraithdu. I've tested it on Windows 7 (x64) and it seem works fine. But here the comment from another topic where user says that Windows 10 discontinued support of "zipfldr.dll". Now I confused. I don't have around any Windows 10 machine to tested it. So maybe someone could confirm or deny that? Or maybe would better to switch to UDF with 7zip dll? I need an advice...
  2. Hello, How can I automatically download a list of zip files, like the ones in the quote, using a AutoIt script? Is it possible with AutoIt script?
  3. I got a UDF to zip the files from below link. With this I am able to create a zip file but the post processing of zip file creation I am checking the zip file exists or not, but it is giving the message as file not found. Any sugestions?? #include "Zip.au3" ZipLogs() Func ZipLogs() $ResultsFolder = @ScriptDir & "\Results" $ResultsDestFolder = @ScriptDir & "\Results_Archive" $zipFile = $ResultsDestFolder & "\Results_"&TodayDateTime()&".zip" DirCreate($ResultsDestFolder) Dim $Zip = _Zip_Create($zipFile) ;Create The Zip File. Returns a Handle to the zip File _Zip_AddFolderContents($Zip, $ResultsFolder) ;Add a folder's content in the zip file if FileExists(@ScriptDir&"\Logging.log") then _Zip_AddFile($Zip,@ScriptDir&"\Logging.log") FileDelete(@ScriptDir&"\Logging.log") EndIf if FileExists(@ScriptDir&"\RemoteExecution_Log.txt") then _Zip_AddFile($Zip,@ScriptDir&"\RemoteExecution_Log.txt") FileDelete(@ScriptDir&"\RemoteExecution_Log.txt") EndIf if FileExists($zipFile) then DirRemove($ResultsFolder,$DIR_REMOVE) Else MsgBox(0,"","Zip file not found") EndIf return $zipFile EndFunc Zip.au3
  4. There is a build machine in the network where it will automatically download the code from source repository and compile using visual studio and compresses the complete code in a zip file. I have added a line at the end of the build script(written in python on that machine) to copy that zip file to my ESX Virtual machine. Where I kept a AutoIT exe to wait for the zip file, once it is copied then I will extract the contents and find only the dll files in the extracted folder and do the Install creation using Installshield silently and copy the created setup files to anther machine. I wrote the script till the setup files creation. But now the problem is, when the zip file is copying through network, the autoit script is detecting it even the copy is still in progress and trying to extract the zip file and failing. Even when I am checking whether the file in use is not working. Any suggestion on how to check whether the copy is completed.?
  5. Hi guys, i hope i am in the right place for this question as it is in regards to zip.au3. I have some encrypted files on my harddrive which zip.au3 can't open. This is perfectly fine. The Problem is that it crashes my program as soon as it tries to access the file. Is there a way to detect if the file is encrypted BEFORE autoit tries to open it? I am using _zip_unzipall to unzip the file, i also tried _zip_count with the same result. My files are encrypted with SafeGuard Lan Crypt. Thanks, Comboku
  6. Hi guys, I often need zipping\unzipping function within my scripts, so I've decided to do a systematic research about it to understand which options I had. I'm sharing with you these results because I think it can save some time to somobody Autoit coders produced much material from 2005 till now, most of it consists of UDF wrappers of 3rd parts libraries, but there are some exception. Let's start: ZIP from scratch UDF: written by joakim. You can retrieve some info from a zip file, but it is just a PoC script, as I can see. LZ UDF: written by trancexx: another exception. It use native windows compression, so it doesn't need anything. It can work with memory, it doesn't work with files. LZMA UDF: written by Ward. He writes a dll which can be directly included or can be embedded within an au3 file. It can work with memory, it doesn't work with files. [it needs LZMA.dll or LZMA.dll.au3](link missing) Package UDF: written by Yashied. It is useful for dealing with package (.pkr) file. ZIP UDF: written by Wraithdu (yet torels UDF): the exception! Based on zipfldr.dll, a native library of Windows, so it does not need to include an external library into the script. It is its strenght, but its weak point too: if zipfldr.dll is corrupted or is missing, your script will not do what you expect. gZip UDF: written by Zinthose. Based on the parsing of gZip.exe output. It can work with memory, it doesn't work with files. [it needs gZip.exe] ZLib UDF: written by monoceres. Based on ZLib.dll. It can compress\uncompress data in memory, it doesn't work with files. [it needs ZLib.dll] pZip UDF: written by asdf8. Based on ZLib.dll. It can extract\add\overwrite file into archives. [it needs pZip.dll] ZLib and gZip UDF: written by Ward. Based on ZLib.dll but it does not need the dll file, because it is written directly in the UDF! It can compress\uncompress data in memory, and it can work with files. It works with gZip format too. (link missing) XZip UDF: written by eltorro, KXM and erifash. Based on XZip.dll, a COM dll. [it needs XZip.dll] XZip UDF: written by mLipok. Based on XZip.dll, a COM dll. A more complete alternative to previous UDF. [it needs XZip.dll] unRAR UDF: written by rasim. Based on unRAR.dll. You can just uncompress rar files with this one (the only method for new v5 RAR files). [it needs unRAR.dll] Parsing unRAR.exe output: you can just uncompress rar files in this way (the only method for new v5 RAR files). [it needs unRAR.exe] 7Zip: I spent a lot of time with it, because I think it is the most useful, there are different approaches: Parsing 7za.exe output, it is the simplest (and in my opinion the best) way, some UDFs can help with it, as jennico UDF (thanks to Screen Scrape script by Valik, it seems it doesn't work in Windows 10) [it needs 7za.exe] Using 3rd part dll, as rasim UDF (yet jak UDF). He rewrites a dll which can be simply invoked by his UDF [it needs 7-zip32.dll and\or 7-zip64.dll]. With Decipher UDF you doesn't need to include the dll in your project, because it is compiled into the script and loaded in memory directly at runtime. Invoking 7za.dll. This is the most complicated approach because the library doesn't use standard COM interfaces. Anyway dany, Starg, milky, trancexx, Mugen and finally Biatu had spent some time with it and they reach a sort of partial result. [it needs 7za.dll] Comment here to add suggestions\links\UDF I forgot and I'll update this post with them!
  7. Very simple: I had seen many examples of unzipping files (Zip) archive, but most of those example where using either some external .dll or are performing the job with the progress bar. Here is a small example how you can unzip your files without any external libraries and without any progress bar $ZipFile5="C:\file.zip" $ExtractTo5="C:\folder" $objShell5 = ObjCreate ("Shell.Application") $FilesInZip5=$objShell5.NameSpace($ZipFile5).items $objShell5.NameSpace($ExtractTo5).CopyHere($FilesInZip5,0x4)Enjoy
  8. Good Morning AutoIT Gurus! First - props to AutoIT and props to you guys It's an incredibly rich featured programming language - Thank you, thank you, thank you! Source:Gray Scripter - Zip32 '?do=embed' frameborder='0' data-embedContent>> Here is my issue with using the <Zip32.au3> If my folder name has periods in it, the zip function fails: Script Portion: $FolderName01 = "Computer_IP_192.168.2.1" ; Example formatting: ; _ZIP_Archive($ZipFile, $DirToZip) _ZIP_Archive($FolderName01, @ScriptDir & '' & $FolderName01) Console Output: !> _ZIPPrint: zip I/O error !> _ZIPPrint: zip error: Could not create output file (Computer_IP_192.168.2.1) Basically this Zip32.au3 can't zip folders with periods in them. Is this something discovered already? This is my current work around: $FolderName01 = StringRegExpReplace( $FolderName01, "[.]", "_") Just wondering if there is an update because I love the function Zip32.au3! "I put that sh** on everything" like Frank's Redhot Thanks!
  9. I was looking for a simple and small freeware ActiveX component for ZIP archive. And behold, here it is: http://www.xstandard.com/en/documentation/xzip/ HERE IS MY UDF (look also to attachment): #include-once #Tidy_Parameters=/sort_funcs /reel ; #AutoIt3Wrapper_Run_Debug_Mode=Y OnAutoItExitRegister("_XZIP_Shutdown") ; in case the script exit without calling _XZIP_Shutdown() #Region XZIP Include #include-once #include <MsgBoxConstants.au3> #include <FileConstants.au3> #include <String.au3> #include <WinAPIFiles.au3> #EndRegion XZIP Include #Region XZIP Header ; #INDEX# ======================================================================================================================= ; Title .........: UDF for "XStandard XZIP Component" ; AutoIt Version : 3.3.10.2++ ; Language ......: English ; Description ...: A collection of functions for "XStandard XZIP Component" ; Author(s) .....: mLipok ; Modified ......: ; =============================================================================================================================== #cs Title: UDF for "XStandard XZIP Component" Filename: XZip.au3 Description: A collection of functions for "XStandard XZIP Component" Author: mLipok Modified: Last Update: 2014/06/04 Requirements: AutoIt 3.3.10.2 or higher XStandard XZIP Component http://www.xstandard.com/en/documentation/xzip/ Update History: =================================================== 2014/06/04 v0.1 First official version #CE #EndRegion XZIP Header #Region #XZIP Constants# ; #CONSTANTS# =================================================================================================================== ; $__<UDF>_CONSTANT_<NAME> Global Const $__sXZIP_ClassName = "XStandard.Zip.1" Global Const $__sXZIP_CLSID = '{13D6BDE3-46AA-4FF2-A622-EBC43110D95C}' Global Const $__sXZIP_IID = '{0B2D411B-7A91-483A-95C4-53DDC6B17895}' Global Enum _ $tFolder = 1, _ $tFile #EndRegion #XZIP Constants# #Region XZIP Global Variables ; #VARIABLES# =================================================================================================================== ; $__g<VARNAME>_<UDF> Global $__hDll_XZIP = 0 Global $__oXZIP_ErrorHandler = '' Global $__fXPDF_Notification = True Global $__sXZIP_DllFileFullPath = @ScriptDir & '\XZIP.dll' #EndRegion XZIP Global Variables #Region EXAMPLES ;~ _XZIP_UseErrorHandler() ;~ _TEST() ;~ _Examples() Func _Examples() Local $oXZIP $sFilePath = @ScriptFullPath $sArchive = @ScriptFullPath & '.zip' $fStorePath = 0 $sNewPath = "" ;~ Sleep(1000) _XZIP_Pack($oXZIP, $sFilePath, $sArchive, $fStorePath, $sNewPath) ;~ _XZIP_ErrorCode($oXZIP) $output = _XZIP_Contents($oXZIP, $sArchive) ;~ MsgBox(1, 'VarGetType', VarGetType($output)) For $out In $output ConsoleWrite($out.Path & $out.Name & @CRLF) Next _XZIP_UnPack($oXZIP, @ScriptDir & '\xZIP.zip', @ScriptDir & '\TESTING') $oXZIP = '' ; CleanUp EndFunc ;==>_Examples #EndRegion EXAMPLES #Region #XZIP INTERNAL# ; =============================================================================================================================== ; #INTERNAL# ==================================================================================================================== #EndRegion #XZIP INTERNAL# #Region #XZIP CURRENT# ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_Contents ; Description ...: Get a list of files and folder in the archive ; Syntax ........: _XZIP_Contents(ByRef $oXZIP, $sArchive) ; Parameters ....: $oXZIP - [in/out] Reference to xZIP object. ; $sArchive - A string value. ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: http://www.xstandard.com/en/documentation/XZIP/ ; Example .......: No ; =============================================================================================================================== Func _XZIP_Contents(ByRef $oXZIP, $sArchive) _XZIP_CreateObject($oXZIP) If @error Then Return SetError(1, '', '') Else Return $oXZIP.Contents($sArchive) EndIf EndFunc ;==>_XZIP_Contents ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_CreateObject ; Description ...: Create Object for XZIP ; Syntax ........: _XZIP_CreateObject(Byref $oXZIP) ; Parameters ....: $oXZIP - [in/out] Reference to xZIP object. ; Return values .: Success: $oXZIP object ; Failure: 0 and set @error to non zero ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _XZIP_CreateObject(ByRef $oXZIP) ;~ $oXZIP = ObjCreate($__sXZIP_ClassName) ;~ Return If _XZIP_StartUp() Then If Not IsObj($oXZIP) Then $oXZIP = ObjCreate($__sXZIP_CLSID, $__sXZIP_IID, $__hDll_XZIP) ; $__sClassName_XZIP_Commercial ;~ _XZIP_ErrorCode($oXZIP) Return SetError(@error, 0, $oXZIP) EndIf EndIf EndFunc ;==>_XZIP_CreateObject ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_Delete ; Description ...: Remove a file from an archive. ; Syntax ........: _XZIP_Delete(ByRef $oXZIP, $sFile, $sArchive) ; Parameters ....: $oXZIP - [in/out] Reference to xZIP object. ; $sFile - A string value. ; $sArchive - A string value. ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: http://www.xstandard.com/en/documentation/XZIP/ ; Example .......: No ; =============================================================================================================================== Func _XZIP_Delete(ByRef $oXZIP, $sFile, $sArchive) EndFunc ;==>_XZIP_Delete ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_ErrFunc ; Description ...: AutoIt COM Error Handling Functionality ; Syntax ........: _XZIP_ErrFunc($oError) ; Parameters ....: $oError - An unknown value. ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _XZIP_ErrFunc($oError) ConsoleWrite(@ScriptName & " (" & $oError.scriptline & ") : ==> COM Error intercepted !" & @CRLF & _ @TAB & "err.number is: " & @TAB & @TAB & "0x" & Hex($oError.number) & @CRLF & _ @TAB & "err.windescription:" & @TAB & $oError.windescription & @CRLF & _ @TAB & "err.description is: " & @TAB & $oError.description & @CRLF & _ @TAB & "err.source is: " & @TAB & @TAB & $oError.source & @CRLF & _ @TAB & "err.helpfile is: " & @TAB & $oError.helpfile & @CRLF & _ @TAB & "err.helpcontext is: " & @TAB & $oError.helpcontext & @CRLF & _ @TAB & "err.lastdllerror is: " & @TAB & $oError.lastdllerror & @CRLF & _ @TAB & "err.scriptline is: " & @TAB & $oError.scriptline & @CRLF & _ @TAB & "err.retcode is: " & @TAB & "0x" & Hex($oError.retcode) & @CRLF & @CRLF) EndFunc ;==>_XZIP_ErrFunc ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_ErrorCode ; Description ...: Return the code of last operation. ; Syntax ........: _XZIP_ErrorCode(Byref $oXZIP) ; Parameters ....: $oXZIP - [in/out] Reference to xZIP object. ; Return values .: ErrorCode of last operation. ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: http://www.xstandard.com/en/documentation/XZIP/ ; Example .......: No ; =============================================================================================================================== Func _XZIP_ErrorCode(ByRef $oXZIP) If IsObj($oXZIP) Then Local $oXZIP_ErrorCode = $oXZIP.ErrorCode($oXZIP) Local $oXZIP_ErrorDescription = $oXZIP.ErrorDescription($oXZIP) ConsoleWrite('! _XZIP_ErrorCode:' & @CRLF) ConsoleWrite('> $oXZIP_ErrorCode = ' & $oXZIP_ErrorCode & @CRLF) ConsoleWrite('> $oXZIP_ErrorDescription = ' & $oXZIP_ErrorDescription & @CRLF) Return SetError(0, $oXZIP_ErrorDescription, $oXZIP_ErrorCode) Else ConsoleWrite('! _XZIP_ErrorCode:' & @CRLF) ConsoleWrite('> $oXZIP is not an object.' & @CRLF) Return SetError(1, '', 0) EndIf EndFunc ;==>_XZIP_ErrorCode ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_ErrorDescription ; Description ...: Return the error code description of last operation. ; Syntax ........: _XZIP_ErrorDescription(Byref $oXZIP) ; Parameters ....: $oXZIP - [in/out] An unknown value. ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _XZIP_ErrorDescription(ByRef $oXZIP) Return $oXZIP.ErrorDescription() EndFunc ;==>_XZIP_ErrorDescription ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_Move ; Description ...: Move or rename a file in the archive. ; Syntax ........: _XZIP_Move(ByRef $oXZIP, $sFrom, $sTo, $sArchive) ; Parameters ....: $oXZIP - [in/out] Reference to xZIP object. ; $sFrom - A string value. ; $sTo - A string value. ; $sArchive - A string value. ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: http://www.xstandard.com/en/documentation/XZIP/ ; Example .......: No ; =============================================================================================================================== Func _XZIP_Move(ByRef $oXZIP, $sFrom, $sTo, $sArchive) EndFunc ;==>_XZIP_Move ; #CURRENT# ===================================================================================================================== ; =============================================================================================================================== ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_Pack ; Description ...: Add file or folder to an archive. ; Syntax ........: _XZIP_Pack(ByRef $oXZIP, $sFilePath, $sArchive[, $fStorePath = False[, $sNewPath = Default[, $iCompressionLevel = -1]]]) ; Parameters ....: $oXZIP - [in/out] Reference to xZIP object. ; $sFilePath - A string value. ; $sArchive - A string value. ; $fStorePath - [optional] A boolean value. Default is False. ; $sNewPath - [optional] A string value. Default is "". ; $iCompressionLevel - [optional] An integer value. Default is -1. Compression level 1 is minimum, level 9 is maximum, all other values default to level 6. ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: http://www.xstandard.com/en/documentation/XZIP/ ; Example .......: No ; =============================================================================================================================== Func _XZIP_Pack(ByRef $oXZIP, $sFilePath, $sArchive, $fStorePath = False, $sNewPath = "", $iCompressionLevel = -1) _XZIP_CreateObject($oXZIP) If @error Then Return -1 Else $oXZIP.Pack($sFilePath, $sArchive, $fStorePath, $sNewPath, $iCompressionLevel) ConsoleWrite('> $oXZIP.ErrorCode = ' & $oXZIP.ErrorCode() & @CRLF) ConsoleWrite('> $oXZIP.ErrorDescription = ' & $oXZIP.ErrorDescription() & @CRLF) ConsoleWrite('! $oXZIP.Version = ' & $oXZIP.Version() & @CRLF) EndIf EndFunc ;==>_XZIP_Pack ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_Shutdown ; Description ...: Close the XZip.dll library ; Syntax ........: _XZIP_Shutdown() ; Parameters ....: None ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _XZIP_Shutdown() $oXZIP = '' If $__hDll_XZIP > 0 Then DllClose($__hDll_XZIP) $__hDll_XZIP = 0 OnAutoItExitUnRegister("_XZIP_Shutdown") EndFunc ;==>_XZIP_Shutdown ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_StartUp ; Description ...: Open the XZip.dll library ; Syntax ........: _XZIP_StartUp() ; Parameters ....: None ; Return values .: TODO ; Author ........: mLipok ; Modified ......: ; Remarks .......: If you not set $__sLicenseKey_XZIP then DebenuPDFLibraryLite1012.dll will be used (Lite version). SET YOUR LICENSE KEY in your main script using _XZIP_SetLicenseKey() ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _XZIP_StartUp() If $__hDll_XZIP = 0 Then If FileExists($__sXZIP_DllFileFullPath) Then $__hDll_XZIP = DllOpen($__sXZIP_DllFileFullPath) If @error = -1 Then MsgBox($MB_SYSTEMMODAL + $MB_OK, "DllOpen Error", "Can not open: " & @CRLF & $__sXZIP_DllFileFullPath) Return SetError(2, '', 0) EndIf Return 1 Else MsgBox($MB_SYSTEMMODAL + $MB_OK, "DllOpen Error", "Dll File not exist: " & @CRLF & $__sXZIP_DllFileFullPath) Return SetError(1, '', 0) EndIf Else EndIf EndFunc ;==>_XZIP_StartUp ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_UnPack ; Description ...: Extract contents of an archive to a folder. ; Syntax ........: _XZIP_UnPack(ByRef $oXZIP, $sArchive, $sFolderPath[, $sPattern = ""]) ; Parameters ....: $oXZIP - [in/out] Reference to xZIP object. ; $sArchive - A string value. ; $sFolderPath - A string value. ; $sPattern - [optional] A string value. Default is "". ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: http://www.xstandard.com/en/documentation/XZIP/ ; Example .......: No ; =============================================================================================================================== Func _XZIP_UnPack(ByRef $oXZIP, $sArchive, $sFolderPath, $sPattern = "") Return $oXZIP.UnPack($sArchive, $sFolderPath, $sPattern) EndFunc ;==>_XZIP_UnPack ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XZIP_UseErrorHandler ; Description ...: Handles incoming events from the given Object. ; Syntax ........: _XZIP_UseErrorHandler() ; Parameters ....: ; Return values .: None ; Author ........: mLipok ; Modified ......: ; Remarks .......: Use it only if you do not use your own COM Error Handling. ; Related .......: _XZIP_ErrFunc ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _XZIP_UseErrorHandler() $__oXZIP_ErrorHandler = ObjEvent("AutoIt.Error", "_XZIP_ErrFunc") EndFunc ;==>_XZIP_UseErrorHandler #EndRegion #XZIP CURRENT# #Region TODO Func _TEST() $oXZIP = '' _XZIP_CreateObject($oXZIP) If Not IsObj($oXZIP) Then MsgBox(1, 'IsObj ERROR', '') Else $sFilePath = @ScriptFullPath $sArchive = @ScriptFullPath & '.zip' ConsoleWrite('> $oXZIP.ErrorCode = ' & $oXZIP.ErrorCode() & @CRLF) ConsoleWrite('> $oXZIP.ErrorDescription = ' & $oXZIP.ErrorDescription() & @CRLF) ConsoleWrite('! $oXZIP.Version = ' & $oXZIP.Version() & @CRLF) EndIf $oXZIP = '' EndFunc ;==>_TEST #EndRegion TODO HOW TO USE IT: look at #Region EXAMPLES ;~ _XZIP_UseErrorHandler() ;~ _TEST() ;~ _Examples() Func _Examples() Local $oXZIP $sFilePath = @ScriptFullPath $sArchive = @ScriptFullPath & '.zip' $fStorePath = 0 $sNewPath = "" ;~ Sleep(1000) _XZIP_Pack($oXZIP, $sFilePath, $sArchive, $fStorePath, $sNewPath) ;~ _XZIP_ErrorCode($oXZIP) $output = _XZIP_Contents($oXZIP, $sArchive) ;~ MsgBox(1, 'VarGetType', VarGetType($output)) For $out In $output ConsoleWrite($out.Path & $out.Name & @CRLF) Next _XZIP_UnPack($oXZIP, @ScriptDir & '\xZIP.zip', @ScriptDir & '\TESTING') $oXZIP = '' ; CleanUp EndFunc ;==>_Examples #EndRegion EXAMPLES Have funmLipok XZip.au3.Download.html
  10. Hello all I was wondering if any one new of a way to extract the files from a Comic Book Archive (.cbr)? My original thought was to use 7za.exe (&-zip console app) but when I run: 7za x 1.cbr 7-zip returns: Processing archive: 1.cbr Error: Can not open file as archive Does anyone a suggestion or other method? PS I am trying to make a .cbr to .pdf script
  11. unzip a .zip

    <NEWBIE ALERT> Is it possible to unzip a zip file in Autoit without using a dll! My script downloads a zip file to a temporary directory (successfully) and it must be unzipped to (Or moved to after unzip) another a folder which just happens to be @scriptdir & "file.exe" Thanks in advance -- James
×