How to extract/unzip *.zip file

Is there any option to extract zip file to particular destination ? If folder exist can it be override files with out any warning messages?

Advance thanks!!

PSADT limits itself to Powershell 2.0 and .Net 2.0

Neither do zip file handling.

Consider using 7za.exe from 7-zip

Thanks for the info… I’m using 7za.exe for extracting .

I’ve used the below code that I found somewhere on the internet. Add this to the “AppDeployToolkitExtensions.ps1” in the “AppDeployToolkitfolder”

Will extract ZIPFile, answer Yes to all prompts and overwrite files, silently (hidden)

copyhere --> 16 (answer Yes), 4 (hidden)

Function Expand-ZIPFile($file, $destination)
{
$shell = New-Object -com shell.application
$zip = $shell.NameSpace($file)
foreach($item in $zip.items())
{
$shell.Namespace($destination).copyhere($item,20)
}
}