Move dated files into their corresponding dated folders

shah_mikael

Reputable
Mar 31, 2014
1
0
4,510
I have .pdf files with the date at the end of their name, e.g. "BINNAWAY - WERRIS CK - 483.94 - 120612".

I have folders named after the dates of each of these files e.g. "12-06-2012".

How can I move all the files into their corresponding folders based on the date in their name?

Note: - I am on Windows XP

- Some files may also be titled: "BINNAWAY - WERRIS CK - 483.94 - 120612 (1)" or "BINNAWAY - WERRIS CK - 483.94 - 120612 (2)" or "BINNAWAY - WERRIS CK - 483.94 - No Date" But there aren't too many of these so I would be happy with just moving the ones that end in the date, such as "BINNAWAY - WERRIS CK - 483.94 - 120612".

- Not all files are in the format <name1> - <name2> - <some numbers> - <date>. Some may be in the format <name1> - <some numbers> - <date> or something else slightly different. However, all files will end with - <date>, in the following possible arrangements: "- 120612", "- 120612 (1)", "- 120612 (2)", or "- No Date".

Would appreciate any advice.

Thanks