suppose I have 10 files generated by the system every day under D:\Temp. The names are RANDOMLY when generated.
Assume I need to rename the oldest one to be 'aaa', the second oldest one to be 'bbb'..then 'ccc'...'ddd'.
can someone help to write batch script? Powershell cmdlt will be good as well.