在Powershell中使用7z解压缩文件 [英] unzip file using 7z in powershell

查看:708
本文介绍了在Powershell中使用7z解压缩文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Powershell中使用7z解压缩文件的命令是什么?

What is the command to unzip a file using 7z in powershell?

set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
sz x  $zipfilePath $destinationUnzipPath -aoa -r;

该命令可以正常运行,但是它说没有要处理的文件,一切正常 >而不是解压缩文件?

The command works fine but it says no files to process, everything is Ok rather than unzipping the file?

推荐答案

这最终对我有用 sz x -o $ destinationUnzipPath $ zipfilePath -r;

这篇关于在Powershell中使用7z解压缩文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆