Just now I saw a brother asking for help to change file names with batch processing, and it reminded me of an idea I had a long time ago.
For example, there are N JPG files in a directory, how to change them to 1.JPG, 2.JPG, 3.JPG and so on.
I have tried many times without success. I hope some kind expert can help solve it. It's best to attach comments to the code. I have limited ability and may not understand it. Thank you.
For example, there are N JPG files in a directory, how to change them to 1.JPG, 2.JPG, 3.JPG and so on.
I have tried many times without success. I hope some kind expert can help solve it. It's best to attach comments to the code. I have limited ability and may not understand it. Thank you.

