How to Extract ZIP Files Using PowerShell

How to Extract ZIP Files Using PowerShell via com

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)

}

}

Expand-ZIPFile –File "C:\howtogeeksite.zip" –Destination "C:\temp\howtogeek"

http://www.howtogeek.com/tips/how-to-extract-zip-files-using-powershell/



from Google Plus RSS Feed for 101157854606139706613 http://www.howtogeek.com/tips/how-to-extract-zip-files-using-powershell

via LifeLong Community

No comments:

Post a Comment