antmar904 Posted October 21, 2022 Share Posted October 21, 2022 (edited) Hi, Some days I am tasked with unzipping multiple compressed folder which can range from ~500MB - ~3GB of data compressed for each folder. Today I use PowerShell with Expand-Archive but it's slow as hell. Just wondering if AutoIt has anyway to do it faster maybe with multithread or some other way? TIA Edited October 21, 2022 by antmar904 Link to comment Share on other sites More sharing options...
NoNameCode Posted October 21, 2022 Share Posted October 21, 2022 Hi antmar904, have you ever compared how long it would take you with the same file with 7-ZIP or Windows Explorer? AutoIt does not support multithreading. However, if you have multiple files, you can start multiple instances that will extract the different archives. Please keep in mind that the unpacking speed is also limited on the hardware side. Here is a link for you from the UDF Wiki:https://www.autoitscript.com/wiki/User_Defined_Functions#Data_compression Maybe you will find something suitable there. NoNameCode Link to comment Share on other sites More sharing options...
antmar904 Posted October 24, 2022 Author Share Posted October 24, 2022 thank you ill check it out. the 7z gui was faster than scripting it with powershell Link to comment Share on other sites More sharing options...
Mobius Posted October 24, 2022 Share Posted October 24, 2022 You could still automate the process with a script or batch file running the command line utility 7z.exe if you wanted to. Link to comment Share on other sites More sharing options...
Nine Posted October 24, 2022 Share Posted October 24, 2022 You can use native windows object (Application.shell). I made an example in Wiki that you could build around. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Musashi Posted October 24, 2022 Share Posted October 24, 2022 32 minutes ago, antmar904 said: the 7z gui was faster than scripting it with powershell If you don't want the full 7-Zip GUI, or only a progress bar, then you can use the commandline tools. Description : You will need the latest commandline tools of 7-Zip and the file 7z.dll7za.exe : without GUI7zG.exe : with GUI (optional) : useful for larger amounts of data to display a progress bar7z.dll7-zip.chm : Helpfile (optional) - contains a list of command line parameters Example : Extract with progress bar : $s7ZipDir = @ScriptDir ; directory where the tools are located $sFile = "Testfile.zip" $sDestDir = @ScriptDir & "\mysoftware" $sCommand = $s7ZipDir & '\7zG.exe x "' & $sFile & '" -o"' & $sDestDir & '" -aoa -y' RunWait ($sCommand, "", @SW_SHOW) "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