| User: editor -- 2010-01-26 |
| Hits: 151 |
| 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" 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! |
Similar Examples: |
| How to split text file by number of bytes? (64%) How to search a subset of xml filenames and rename them? (60%) How to sort the files by prefered sequence, and batch add a sequence number after each file? (57%) How to sort the lines in a text files by the order of line length? (56%) How to sort the text file by the date at the beginning of each line? (53%) How to extract/parse all lines with number greater than 40? (52%) How to add a line number at the beginning of each line? (52%) How to merge many files into one file, and add filename before each file? (52%) |
Check Demo of Batch file rename |