我在许多子文件夹中都有许多* .zip文件。我试图使用此命令通过批处理文件提取所有文件,但它不起作用。我该如何解决?
FOR /F "tokens=* delims=" %%A in ('dir /b /s *.zip') do (7z.exe l -r "%%A" >> listing.txt)
我正在关注本教程。
尝试执行以下命令,它应该可以完成您所寻找的操作:
FOR /F "usebackq tokens=* delims=" %%A IN (`dir /b /s *.zip`) DO (
REM Extract each zip file to a folder with same name as the file.
7z x "%%A" -o"%%~dpA"
)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句