| User: editor -- 2012-03-15 << 926 928 >> |
| Hits: 4659 |
| Type: Batch file rename |
| Search all Batch file rename examples |
| Description: |
| I have many text files with different number of lines, is it possible to rename all the files, appending the number of lines at the end of each filename? |
| Input Sample: |
| original files: file1.txt has 98 lines file2.txt has 330 lines file3.txt has 103 lines |
| Output Sample: |
| new filename: file1(98).txt file2(330).txt file3(103).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 text files from Windows file browser to "batch runner" window 3. check option of "set output filename", and set the following entry to: 4. check the new filename preview at output file column, make sure it is correct 5. click "File Rename", done. |
Screenshot 1: Batch_Runner_Window |