User: editor -- 2010-02-16 << 421 423 >> |
Hits: 4572 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How to batch rename files with the first word of file contents? I have some files that has blank line in first line or first 2 lines, is there any way that rename this files with the first word appear in the test files? |
Input Sample: |
file1.txt fiel2.txt file3.txt |
Output Sample: |
<1st_word_of_file1>.txt <1st_word_of_file2>.txt <1st_word_of_file3>.txt . |
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 files from windows 'File Browser' and drop to 'Batch Runner' window 3. check option of 'set output filename', and change the following entry to be: to avoid filename duplicate, you can add 3 digit sequence number as prefix, like: 4. check preview of filename at the 'output file' column, and click 'File Rename' button, all files will be renamed. |
Screenshot 1: Batch_Runner_Window |