Script to count text files in a folder and move oldest files elsewhere?
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'.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)