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?
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?
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
[...]
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
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
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: