在PowerShell中,可以使用Expand-Archive命令来解压文件。以下是一个简单的示例:

Expand-Archive -Path "C:\path\to\archive.zip" -DestinationPath "C:\path\to\destination"

在上面的示例中,我们指定了要解压的文件路径(archive.zip)以及目标文件夹路径(destination)。Expand-Archive命令将解压缩文件到指定的目标文件夹中。

请注意,Expand-Archive命令需要PowerShell 5.0或更高版本才能运行。如果您的PowerShell版本较低,您可以考虑使用其他工具,如7-Zip,来解压文件。

powershell 解壓文件

原文地址: https://www.cveoy.top/t/topic/i10l 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录