batch 7zip delete 命令不删除文件

batch 7zip delete command does not delete files

我需要使用 7zip 从大量 zip 文件中删除特定文件。这是命令我运行:

for %A in (*.zip) do 7z d %A app_store*.* default_*.png -r

但它会创建一个空白的 7z 文件并且不会从 zip 中删除文件。出了什么问题?

不好意思这几天弄糊涂了,发到这里就解决了

问题是文件名中有空格。当我将 " 添加到第二个 %A 时,它起作用了:

for %A in (*.zip) do 7z d "%A" app_store*.* default_*.png -r

但这仍然是一种拉扯头发的行为。