使用 Powershell 给压缩包解压的方法

📂 将压缩文件解压到指定文件夹
Expand-Archive -Path "C:\path\to\your\archive.zip" -DestinationPath "C:\path\to\destination"

📂 如果需要覆盖目标文件夹中已有的文件,可以添加 -Force 参数
Expand-Archive -Path "C:\path\to\your\archive.zip" -DestinationPath "C:\path\to\destination" -Force

这种方法只能解压 zip 后缀的压缩文件。如需解压rar、7z、tar等后缀的压缩包还是要安装解压缩软件。
 
 
Back to Top