Well you can google for "Python Scripting" and install the interpreter (from here http://www.python.org/
) and it comes with a simple editor. Then try googling "Getting started with python". I don't have any specific site recomendations. There will be tons of sample code if you can find one that seems close to what you want to do. Like "Sort files using pyton".
For example, this sample does several of the things you will need to do for your task even though it doesn't do exactly the same thing:
Using Python to delete old files and keep newest ones : Graham Lyons
But it shows how to iterate over all files in a foilder, find information about them and then do something with them... ANd it's only 7 lines of code. Yours may be a bit longer but should still be pretty simple.