从另一个 zip 存档中提取压缩文件
Extract zipped file from another zip archive
我正在使用 powershell 5.1.17134.590,想知道是否有一种方法可以从另一个 zip 中提取压缩文件,而无需先复制到另一个文件夹,请
像这样,唯一的提取将来自 file.zip 内容:
Expand-Archive -LiteralPath arquive.zip\file.zip -DestinationPath c:\somefolder
Microsoft.PowerShell.Archive 似乎无法做到这一点,似乎仅限于基础水平 compression/decompression - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/?view=powershell-6
我发现一些帖子中有人使用 System.IO.Compression.FileSystem 来实现这个目标:
https://techibee.com/powershell/reading-zip-file-contents-without-extraction-using-powershell/2152
我正在使用 powershell 5.1.17134.590,想知道是否有一种方法可以从另一个 zip 中提取压缩文件,而无需先复制到另一个文件夹,请
像这样,唯一的提取将来自 file.zip 内容:
Expand-Archive -LiteralPath arquive.zip\file.zip -DestinationPath c:\somefolder
Microsoft.PowerShell.Archive 似乎无法做到这一点,似乎仅限于基础水平 compression/decompression - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/?view=powershell-6
我发现一些帖子中有人使用 System.IO.Compression.FileSystem 来实现这个目标:
https://techibee.com/powershell/reading-zip-file-contents-without-extraction-using-powershell/2152