#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
}
本文出自 “运维人生” 博客,请务必保留此出处http://lixiaosong.blog.51cto.com/705126/1679508
原文地址:http://lixiaosong.blog.51cto.com/705126/1679508