I am trying to create a script that will check the date created of a file, then move it to a specific folder based on that file name, if it is so old.
Example
Folders: 345000, 346000, 347000
Files: 345678, 346898, 345123
The files beginning with the same first 3 characters would go to that folder.
I've been able to do the date part of it and strip the first three characters from the file name, I just can't figure our how to make the move based on the names.
Any help at all will be much appreciated.
Example
Folders: 345000, 346000, 347000
Files: 345678, 346898, 345123
The files beginning with the same first 3 characters would go to that folder.
I've been able to do the date part of it and strip the first three characters from the file name, I just can't figure our how to make the move based on the names.
Any help at all will be much appreciated.