Jump to content

ZIP UDF (zipfldr.dll library)


wraithdu
 Share

Recommended Posts

  • 3 years later...

As today, I still use in win10 (also 64bit and october '20 update) this old UDF for my basic zip needs.

Same code as in first post of this thread, but I have removed some lines because I think they engage a "com error handler" for no real reason.

 I removed:

;;; Start COM error Handler
;=====
; if a COM error handler does not already exist, assign one
If Not ObjEvent("AutoIt.Error") Then
    ; MUST assign this to a variable
    Global Const $_Zip_COMErrorHandler = ObjEvent("AutoIt.Error", "_Zip_COMErrorFunc")
EndIf


; and ......


Func _Zip_COMErrorFunc()
EndFunc   ;==>_Zip_COMErrorFunc

So I attach the modified UDF.

 

_Zip.au3

Link to comment
Share on other sites

  • 1 year later...

Replace the file with the same name in the zip file if it is in subdirectories!

For example, I have a zip file with the following contents:

my zip file name: file.zip

Content:

flower\reg.jpeg

flower\black.jpeg

computer\laptop.jpeg

computer\desktop.jpeg

i want to replace "laptop.jpeg"  in file.zip if exist "laptop.jpeg" in my zip file (also if "laptop.jpeg" is in subdirectory)

 

Func _Zip_Replace($sZipFile, $sReplaceFile)
.
.
.
EndFunc   ;==>_Zip_Replace

 

 

 

Edited by r2du-soft
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...