This project is read-only.

Unzip Process so slow

Jan 12, 2012 at 5:54 PM
Edited Jan 12, 2012 at 5:58 PM

Why is the Unzip process so slow in powershell? Is there something I can do to speed it up? It took close to 40 minutes to unzip 3 files with a size of 111mb, 622mb, and 520mb.


function UnZipMe {
    $shell=new-object -com shell.application
    $CurrentLocation = $SourceFile
    $ZipFiles = get-childitem -Path $CurrentLocation'\*.zip'
    $ZipFiles.count | out-default

    foreach ($ZipFile in $ZipFiles) {

        $ZipFile.fullname | out-default
        $zipfile = [Ionic.Zip.ZipFile]::Read($ZipFile)
        $zipfile | % { $_.Extract($unzipDir) }


 Add-Type -Path $Tmp_Dir'\DotNet\zip-v1.9-Reduced\Release\Ionic.Zip.Reduced.dll'   
UnZipMe $source $destination

    Add-Type -Path $Tmp_Dir'\DotNet\zip-v1.9-Reduced\Release\Ionic.Zip.Reduced.dll'