| User: editor -- 2010-01-26 << 403 405 >> |
| Hits: 495 |
| Type: Batch file rename |
| Search all Batch file rename examples |
| Description: |
| How to sort the files by number, and batch rename them? I have some files with name a1.jpg, a2.jpg, a3.jpg, ... a9.jpg,a10.jpg, how to sort them by the order of number(which is 1,2,3,..9,10,...), instead of string(which is 1,10,11,12,...19,2,20,21)? And the new file name should be new0001.jpg, new0002.jpg, new0003.jpg, ... |
| Input Sample: |
| 1.jpg 2.jpg ... 9.jpg 10.jpg 11.jpg ... |
| Output Sample: |
| 0001.jpg 0002.jpg 0003.jpg ... 0010.jpg 0011.jpg |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-B open 'Batch Runner' window 2. drag jpg files from file browser to 'Batch Runner' window 3. click 'Input file' column title, file will be automatically sorted by the number, 2 will be in front of 11. 4. check 'Set output file name' option, and set the entry at right to: 5. click "File Rename", done! |
Screenshot 1: Batch_Runner_Window |