4

I have at least 40 archive files, 100 MB each, which also includes many .jpg files within.

How I can delete the .jpg files from these archives easily?

To be more exact, I am looking for a way to delete all these fields directly from the archived file, without the need to extract it (Extract of the archive is not an option because the archive was done in a way to that I can not repeat)

GorovDude
  • 367

2 Answers2

7

On Windows, install 7zip, and run following command in the folder with the zip files:

for /r %x in (*.zip) do "C:\Program Files (x86)\7-Zip\7z.exe" d -r %x *.jpg
slhck
  • 235,242
xhafan
  • 289
  • 2
  • 4
2

Just open the .zip archive in Windows Explorer (if you are on a PC), right-click on the jpg file you want to delete, and choose delete. Windows will remove it from the archive without recompressing or changing any of the other files. I don't know how this works on other operating systems, but most should have a similar feature built in.

nhinkle
  • 37,661