Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

404.Batch file rename -- How to sort the files by number, and batch rename them?

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


Similar Examples:
How to sort all the numbers in each line randomly? (66%)
How to split text file by number of bytes? (64%)
How to sort file by the number which first appear in each line? (60%)
How to sort a file list by the extension of the filename? (60%)
How to search a subset of xml filenames and rename them? (60%)
How to extract all lines with numbers from many text files? (57%)
How to sort the files by prefered sequence, and batch add a sequence number after each file? (57%)
How to sort the text by the number of specific word in each line? (56%)

Check Demo of Batch file rename
Keywords:
101  123  automatically  automatic  jpg  automat  auto  order  title  string  order rename  batch sort files order  order number  batch file sort by column number  batch file to sort files by number  batch sort number  batch file to sort by file name  jpg rename