For general files, I can't help you. But there is a nice Windows program to detect duplicate image files. The best part about it is you can detect approximate similarity too (one image is larger than another but otherwise identical; one image is 99% the same as the other; etc.). It's called
Dup Detector.