Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

920.Batch file rename -- How to add 0 before all 4 digit numbers in multiple filenames?

User: Vlad -- 2012-02-13          << 919  921 >>
Hits: 4500
Type: Batch file rename   
Search all Batch file rename examples
Description:
How to batch rename files by replacing all -xxxx- with -0xxxx-, where xxxx is any four digit number that are different for each file.
Input Sample:
file1-1234-aaa.txt 
file2-5678-bbb.txt
Output Sample:
file1-01234-aaa.txt 
file2-05678-bbb.txt
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->batch runner" menu 
2. drag multiple files from "window file browser" to "Batch Runner" window 
3. check option of "set output filename", and change the following entry to: 
 
4. check filename preview at "output file" column 
5. click "File Rename", done!

Screenshot 1:  Batch_Runner_Window


Similar Examples:
How to add a leading zero to all 4 digit numbers in multiple files? (82%)
How to calculate the summary of all numbers in multiple files? (67%)
How to remove all the lines that with odd line number for multiple files? (65%)
How to replace a word/string with increasing number in multiple files? (62%)
How to remove everything before a hyphen in multiple filenames? (62%)
How to append strings between h2 tags to the end of  multiple filename? (61%)
How to remove the "." and following strings from multiple filenames? (61%)
How to add empty line at begin of multiple files? (61%)

Check Demo of Batch file rename
Keywords:
ddd  batch rename files by replacing  replacing  filenames  xxx  mer  digit  dig  names  before  replacing numbers batch  batch rename add before  rename files 4 digit numbers  rename files add 0 to numbers  batch number each digit  rename 4 digit numbers  rename replacing  replacing file