dengwen3 发表于 2018-9-2 10:53:47

怎么使用powershell解压一个压缩文件

  #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
  }

页: [1]
查看完整版本: 怎么使用powershell解压一个压缩文件