Martijn,
That doesn't make sense. If you are going to compare files in the same dir then they obviously can't have the same name. Contrary topopular opinion, size doesn't matter either. Files can be the same size but different.

The only way to be sure is to use a full compare like FC.EXE or the like.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.