Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

936.Batch file rename -- How to batch rename last part of filenames to the strings from a file?

User: vlad -- 2012-04-13          << 935  937 >>
Hits: 4675
Type: Batch file rename   
Search all Batch file rename examples
Description:
How to batch rename last part of filenames to the strings from a file? 
I have a list of 5 digit numbers total of 30000 of them. 
I have also 30000 files in .jpg with the text for example: 
word1-word2-word3-sip1 
word1-word2-word3-sip2 
.............. 
word1-word2-word3-sip30000 
 
so how do I get my list of five digit numbers and use them to replace sip1, sip2 ......... sip30000 
Input Sample:
word1-word2-word3-sip1.jpg 
word1-word2-word3-sip2.jpg 
...
Output Sample:
word1-word2-word3-3001.jpg 
word1-word2-word3-3005.jpg 
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" window 
2. drag multiple files from windows file browser to "batch runner" window(if there are many files, can use "search" button) 
3. assume the file with list of 5 digit number is d:\test\list.txt, check 'set output file name' option, set the following entry to: 
 
4. after the new filename are generated, check if the names are valid from 'output file' column. 
5. click 'file rename', done. 
 
Note: you need to change formula in step 3 if your name is not d:\test\list.txt, you must use double backslash \\ for folder separator.

Screenshot 1:  Batch_Runner_Window


Similar Examples:
How to batch rename PDF files with the date inside the file? (71%)
How to batch rename files to the new names from a list in a text file? (70%)
How to batch rename files by a filename mapping list? (69%)
How to batch insert part of the filename into the file content? (68%)
How to batch rename files to the first date found in the files? (67%)
How to batch rename each html file to the title of the html file? (66%)
How to batch extract html title from files and link to the file? (64%)
How to batch insert filename at start/beginning of each lines? (64%)

Check Demo of Batch file rename
Keywords:
last part  batch rename last part of filename  rename last part of filename  total  batch rename last  backslash  double  slash  filenames  strings  rename last part of file name  replace text in multiple windows filenames  how to rename last part of folder name with batch  how to get number after  rename the last part of the file  replace text in multiple files with filenames  get number part batch file  rename multiple files to list of names