[英]When I use powershell perform decompression, how to list the files in the running
As title, When I use PowerShell perform decompression, the command line window just show the command like 作为标题,当我使用PowerShell执行解压缩时,命令行窗口仅显示如下命令
'powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('X:\XXX\XXX.zip', '.'); }"'
But I want to know which file is in decompress. 但是我想知道哪个文件正在解压缩。
I'm not sure is there any parameter that I can add in that command? 我不确定该命令中是否可以添加任何参数? Or just I'm using incorrect parameter cause the log is not showing?
或者只是我使用了不正确的参数,导致日志未显示?
The ExtractToDirectory method doesn't provide any outputs or logs. ExtractToDirectory方法不提供任何输出或日志。 You may have to use a third party tool like 7-Zip or use the COM-Object Shell.Application to open the Zip and copy each item by yourself where you can also add your desired outputs.
您可能必须使用第三方工具(例如7-Zip)或使用COM-Object Shell.Application打开Zip并自己复制每个项目,还可以在其中添加所需的输出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.