r2du-soft Posted March 16, 2020 Share Posted March 16, 2020 hi i use form this code for extract zip file _Zip_UnzipAll("C:\My_File.zip", "C:\", 0) but i have two problem: 1-i want wait to unzip finished and after that continue 2-this code show windows copy file! i want silent extract? how can i do this? thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted March 16, 2020 Developers Share Posted March 16, 2020 Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team r2du-soft 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Musashi Posted March 16, 2020 Share Posted March 16, 2020 (edited) 2 hours ago, r2du-soft said: i use form this code for extract zip file _Zip_UnzipAll("C:\My_File.zip", "C:\", 0) This is only a function call, but it probably originates from the UDF zipau3-udf-in-pure-autoit ; Function Name: _Zip_UnzipAll() ; Description: Extract all files contained in a ZIP Archieve. ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant) ; $hDestPath - Complete path to where the files will be extracted ; $flag = 1 ; - 1 no progress box ; - 0 progress box Try to use 1 instead of 0 as the last parameter. Unless you have a problem with the external program 7-Zip (standalone versions), I would recommend it. EDIT : 7-Zip, especially the standalone components, are among the few external programs that I use without hesitation. I have already written various articles on this topic. If you need help with the syntax, feel free to ask . Edited March 16, 2020 by Musashi r2du-soft 1 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
r2du-soft Posted March 16, 2020 Author Share Posted March 16, 2020 4 hours ago, Musashi said: This is only a function call, but it probably originates from the UDF zipau3-udf-in-pure-autoit ; Function Name: _Zip_UnzipAll() ; Description: Extract all files contained in a ZIP Archieve. ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant) ; $hDestPath - Complete path to where the files will be extracted ; $flag = 1 ; - 1 no progress box ; - 0 progress box Try to use 1 instead of 0 as the last parameter. Unless you have a problem with the external program 7-Zip (standalone versions), I would recommend it. EDIT : 7-Zip, especially the standalone components, are among the few external programs that I use without hesitation. I have already written various articles on this topic. If you need help with the syntax, feel free to ask . thanks for answer Musashi im change 0 to 1 and test again but i see again windows progressbar! i attach picture of progressabar when i use from _Zip_UnzipAll() function... Link to comment Share on other sites More sharing options...
Musashi Posted March 16, 2020 Share Posted March 16, 2020 20 minutes ago, r2du-soft said: im change 0 to 1 and test again but i see again windows progressbar! With the above mentioned UDF, I don't get a progressbar, no matter if I use the parameter 1 or 0. There is a rewritten version of this UDF from @wraithdu , see : https://www.autoitscript.com/forum/topic/116565-zip-udf-zipfldrdll-library/ Please check which version you are using and include a minimal script, so that we can test it. "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Musashi Posted March 16, 2020 Share Posted March 16, 2020 7 hours ago, Musashi said: Please check which version you are using Assuming you are using the _Zip.au3 from @wraithdu , please test the following script : expandcollapse popup; From : https://www.autoitscript.com/forum/topic/116565-zip-udf-zipfldrdll-library/ #include "_Zip.au3" ; Description ONLY ==> : ; =============================================================================================================== ; Name...........: _Zip_UnzipAll ; Description....: Extract all files contained in a ZIP archive ; Syntax.........: _Zip_UnzipAll($sZipFile, $sDestPath[, $iFlag = 20]) ; Parameters.....: $sZipFile - Full path to ZIP file ; $sDestPath - Full path to the destination ; $iFlag - [Optional] File copy flags (Default = 4+16) ; | 4 - No progress box ; | 8 - Rename the file if a file of the same name already exists ; | 16 - Respond "Yes to All" for any dialog that is displayed ; | 64 - Preserve undo information, if possible ; | 256 - Display a progress dialog box but do not show the file names ; | 512 - Do not confirm the creation of a new directory if the operation requires one to be created ; |1024 - Do not display a user interface if an error occurs ; |2048 - Version 4.71. Do not copy the security attributes of the file ; |4096 - Only operate in the local directory, don't operate recursively into subdirectories ; |8192 - Version 5.0. Do not copy connected files as a group, only copy the specified files ; ; Return values..: Success - 1 ; Failure - 0 and sets @error ; | 1 - zipfldr.dll does not exist ; | 2 - Library not installed ; | 3 - Not a full path ; | 4 - ZIP file does not exist ; | 5 - Failed to create destination (if necessary) ; | 6 - Failed to open destination ; | 7 - Failed to extract file(s) ; Author.........: wraithdu, torels ; Remarks........: Overwriting of destination files is controlled solely by the file copy flags (ie $iFlag = 1 is NOT valid). ; =============================================================================================================== Global $g_sZipFile, $g_sDestPath, $g_iFlag, $g_iReturn, $g_iError $g_sZipFile = @ScriptDir & "\Testfile.zip" ; <== replace with your own value $g_sDestPath = @ScriptDir & "\Dest\" ; <== replace with your own value $g_iFlag = 16 + 4 $g_iReturn = _Zip_UnzipAll($g_sZipFile, $g_sDestPath, $g_iFlag) $g_iError = @error MsgBox(BitOR(64, 4096), "Result : UnzipAll", _ "ZipFile = " & $g_sZipFile & @CRLF & _ "DestPath = " & $g_sDestPath & @CRLF & _ "Flag = " & $g_iFlag & @CRLF & _ "Return = " & $g_iReturn & " (1=Success, 0=Failure)" & @CRLF & _ "Error = " & $g_iError & @CRLF) "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." 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