I have thought this, but the problem is when exists 2 files which have the same 6 first characters in their filenames. confused