如何在cmd中显示7zip的提取进度?

Deb*_*Deb 5 command-line 7zip batch-file command-prompt progress-bar

7z.exe在 cmd 中不显示任何提取进度。"C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar"使用 GUI 进度条提取文件。但我不想要 GUI 进度条。我想以 cmd 中的百分比显示进度。即,我想使用7z.exe而不是7zG.exe显示百分比进度。

小智 8

您可以使用 -bsp1开关来查看进度

'C:\Program Files\7-Zip\7z.exe'  a  -bsp1
Run Code Online (Sandbox Code Playgroud)