#requires -Version 5
$Source = 'C:\somezipfile.zip'
$Destination = 'C:\somefolder'
$Overwrite = $true
$ShowDestinationFolder = $true
Expand-Archive -Path $Source -DestinationPath $Destination -Force:$Overwrite
if ($ShowDestinationFolder)
{
explorer.exe $Destination
}
本文转自handsome7038 51CTO博客,原文链接:http://blog.51cto.com/lixiaosong/1679508