1

On Windows 7, I have 120 Zip files, each Zip containing images.

Is there any utility or software with which I can confirm how many total images are combined in all 120 Zips?

Giacomo1968
  • 58,727
Roxion
  • 354

4 Answers4

1

To count the total number of .jpg files inside multiple zips in the current folder with some Linux shell (which can be accessed on Windows):

find . -maxdepth 1 -type f -name '*.zip' -exec unzip -l {} \; | grep -c '\.jpg$'

E.g., if the folder contains:

a.zip
123.zip
test.zip
[...]
Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400
0

You can try command like this:

rar -t *.zip |find /i ".jpg" /c

-t to test archives (and list files)
find to get all files which contain .jpg in filename and /c to count them

Romeo Ninov
  • 7,848
0

This PowerShell script will count .jpg files in all Zip archives in the folder and its sub-folders:

$ZipRoot = 'C:\Path\To\Folder'
$Count = 0

$ZipFiles = Get-ChildItem -Path $ZipRoot -Recurse -Filter '*.zip'

$Shell = New-Object -ComObject Shell.Application

$Results = foreach( $ZipFile in $ZipFiles ){
    $Count += $Shell.NameSpace($ZipFile.FullName).Items() |
        Where-Object { $_.Name -match '\.jpg$' } |
        Measure-Object |
        Select-Object -ExpandProperty Count
    }

Write-Host "Count= ", $Count
harrymc
  • 498,455
0

Utility for counting total files inside of multiple Zips

One can use 7-Zip (gratis). Select all the archive files in Windows Explorer, right click -> 7-Zip -> Test Archive:

enter image description here

enter image description here

Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400