As the title suggests, I'm looking to create a script that will count the number of notepad/text files in a folder and if it's over 15, cut and paste the oldest files to another folder.

So, if there was 20 notepad/text files in the folder called 'this is a folder', the oldest 5 files would be cut and paste to a different folder called 'this is another folder'.

Is this possible in either VBScript or JavaScript? It needs to run client-side, not on a server, whichever language is used.

Thank you.