How to unzip a file in Powershell?

前端 未结 9 2141
清歌不尽
清歌不尽 2020-11-29 17:07

I have a .zip file and need to unpack its entire content using Powershell. I\'m doing this but it doesn\'t seem to work:

$shell = New-Object -Co         


        
9条回答
  •  失恋的感觉
    2020-11-29 17:13

    In PowerShell v5+, there is an Expand-Archive command (as well as Compress-Archive) built in:

    Expand-Archive c:\a.zip -DestinationPath c:\a
    

提交回复
热议问题