![](/img/trans.png)
[英]How can I use a specific PHP version when running a powershell command/instance without changing the global version?
[英]When I use powershell perform decompression, how to list the files in the running
作为标题,当我使用PowerShell执行解压缩时,命令行窗口仅显示如下命令
'powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('X:\XXX\XXX.zip', '.'); }"'
但是我想知道哪个文件正在解压缩。
我不确定该命令中是否可以添加任何参数? 或者只是我使用了不正确的参数,导致日志未显示?
ExtractToDirectory方法不提供任何输出或日志。 您可能必须使用第三方工具(例如7-Zip)或使用COM-Object Shell.Application打开Zip并自己复制每个项目,还可以在其中添加所需的输出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.