Graeme Posted June 21, 2017 Share Posted June 21, 2017 It worked! Thanks so much. Why didn't I think of that - cause you're the genius and not me. Link to comment Share on other sites More sharing options...
t0nZ Posted April 9, 2021 Share Posted April 9, 2021 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 More sharing options...
r2du-soft Posted June 6, 2022 Share Posted June 6, 2022 (edited) 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 June 6, 2022 by r2du-soft Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now