如何使用 7-Zip 从多个 zip 存档中删除文件 [英] How to delete a file from multiple zip archives using 7-Zip

查看:30
本文介绍了如何使用 7-Zip 从多个 zip 存档中删除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一千个 zip 档案,它们都包含一个我想删除的文件.我可以使用 7Zip 从命令行一次删除一个文件:

I have a thousand zip archives that all contain a file I want to remove. I can get 7Zip to remove them one file at a time from the command line:

7z d -r archive.zip *.pdf

但是我如何将其应用于所有文件,这些文件本身分组在子目录中?

but how would I apply that across all the files, which are themselves grouped in sub-directories?

推荐答案

试试这个:

for /r %v in (*.zip) do 7z d -r "%v" *.pdf

但不知道它是否有效,只是我脑子里写的:P

But no idea if it's working, just wrote out of my head :P

这篇关于如何使用 7-Zip 从多个 zip 存档中删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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