通过在每个文件前面添加[a-z] [1-9]重命名目录中的所有文件

I am having a problem with particular device where i transfer files to. This device is not capable of sorting files for use, it always uses ascending a-z sorting. That creates a problem where i need files to be "processed" by creation date instead.

That said, I came up with an idea to have script in form of .bat file i.e. I would put that script into directory where all the files are and simply run it.

The idea is that script would need to iterate over all the files, the only requirement would be that it needs to sort files descending by creation date before it starts. Then during iteration it would need to rename each file for the purpose of adding letters and digits in front.

结果如下:

a1-file-name.dat // created 5 min ago
...
a2-file-name.dat // created 10 min ago
...
a9-file-name.dat // created 15 min ago
b1-file-name.dat // created 20 min ago
...
b6-file-name.dat // created 25 min ago
...
b9-file-name.dat // created 30 min ago

在Windows脚本的情况下,我的经验和专有技术为零,因此我将寻求帮助。