Batch Files Rename sorted by date
I have folder/s I upload files to it/them, with 1000-20,000 files of deferent kinds (pdf, jpg, wmv...etc) with deferent file names and length with spaces in them ..etc
I am trying make Batch to rename them on a regular bases but I want them sorted by "oldest date first", and the new name will be in the format of YYYT000001.xxxx ... YYYY036242.xxxx (where YYYY is a fixed text "Jan" or Dec" (I will enter it manually in the script), and xxxx is the original file extensions)
I've tried to use the input "for i in $(ls- tr)" as it will be sorted by oldest date, and tried to replace the file names using "basename $i" ..etc.
I have searched the net but my thick head could not come up with a working script.
Any ideas / help