| User: editor -- 2010-04-17 << 479 481 >> |
| Hits: 727 |
| Type: Batch file rename |
| Search all Batch file rename examples |
| Description: |
| How to batch rename text files by adding the value of file content to filename? I have some files like 1.txt, 2.txt, 3.txt, there are some numbers in each file, for example in 1.txt there is a number 234 at the beginning of file, I want to automatically rename 1.txt==> 235.txt (because 1+234=235) |
| Input Sample: |
| 1.txt (numbers in 1.txt: 234, 99, 18) 2.txt (numbers in 2.txt: 88, 122) 3.txt (numbers in 3.txt: 225, 9) |
| Output Sample: |
| 235.txt 90.txt 228.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 files like 1.txt, 2.txt, ... from Window File browser to "Batch Runner" window. 3. check option of 'set output filename', modify the following entry to: 4. check the preview at 'output file' column, and click 'File Rename' done! |
Screenshot 1: Batch_Runner_Window |