Jump to content

Unzip a large number of compressed folder fast


Recommended Posts

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 by antmar904
Link to comment
Share on other sites

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

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.dll
7za.exe   : without GUI
7zG.exe   : with GUI (optional)  : useful for larger amounts of data to display a progress bar
7z.dll
7-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)

 

 

Musashi-C64.png

"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

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...