I have a particular folder on a secondary hard drive with a couple of hundred JPEG files in it (specifically Steam screenshots). A couple of days ago I noticed that, with thumbnails enabled, I can no longer open this folder, either in Windows Explorer or using Steam's screenshot viewer, without the disk effectively seizing up - it reports 100% disk usage and will take an age to process any further requests. This will continue indefinitely until reboot. After a little experimenting, I tried to compress this folder using 7z. Compression actually failed, reporting two corrupt files (helpfully, it did not report their names).
After some research I switched off thumbnails temporarily and was able to open the folder. I then switched to Details view and enabled the Dimensions column, as it has been suggested that if this data is missing then the file is corrupt. The disk seized up again.
My question is - is there any way I can determine which of these several hundred files are corrupt so that I can either repair or delete them, without causing the disk to fall over?