简体   繁体   English

当我使用powershell执行解压缩时,如何在运行中列出文件

[英]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.

相关问题 在运行 powershell 命令/实例时,如何在不更改全局版本的情况下使用特定的 PHP 版本? - How can I use a specific PHP version when running a powershell command/instance without changing the global version? 使用ExternalUI安装MSI文件时如何获取正在使用的文件列表 - How to get list of files in use when installing MSI file with ExternalUI 如何在 PowerShell 中批量重命名文件? - How can I bulk rename files in PowerShell? Powershell - 如何显示列表中的哪些计算机正在运行特定进程? - Powershell - how to show which computers from a list are running a specific process? 运行时如何使exe从服务器打开文件列表中删除(从共享开始) - How to make a exe that is removed from the servers open files list when running (started from a share) 如何在 PowerShell 上使用 cl 命令? - How can I use the cl command on PowerShell? 如何在 Powershell 中使用逻辑与 (&&)? - How can I use logical AND (&&) in Powershell? 如何 PInvoke SHQueryUserNotificationState 以在 Powershell 中使用? - How do I PInvoke SHQueryUserNotificationState for use in Powershell? 在PowerShell中,如何在运行脚本之前设置$ HOME变量? - In PowerShell, how do I set $HOME variable before running a script? 如何使用PowerShell从.dll或.exe文件提取数据 - How to use PowerShell to extract data from .dll or .exe files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM