Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

652.Batch file rename -- How to rename mutiple files with the 3rd and 4th line in file content?

User: editor -- 2010-11-11          << 651  653 >>
Hits: 511
Type: Batch file rename   
Search all Batch file rename examples
Description:
How to rename mutiple files with the 3rd and 4th line in file content?

There are many text files, each file has following contents:
xxxxx
xxxx
AAA
0123
xxx

how to change each filename to the 3rd line and 4th line? the new filename will be the format like AAA-0123.txt
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 to "Batch Runner" window
3. set "set output filename" entry to:

4. check the preview on "output file" column, click "File Rename", done!

Screenshot 1:  Batch_Runner_Window


Similar Examples:
How to batch rename text files with random line from file contents? (77%)
How to rename files to the last 10 chars of 3rd line of file content? (74%)
Is there a way to batch rename files with the first line of the file content? (68%)
How to batch rename files with the first word of file contents? (67%)
How to batch rename file extension to the letter 8-10 of 2nd line of file content? (66%)
How to batch rename text files by adding the value of file content to filename? (66%)
How to batch rename files with the first line of file content as new file name? (66%)
How to batch rename files to the first 8 characters of the second line of file content? (65%)

Check Demo of Batch file rename
Keywords:
mutiple  xxxxx  muti  4th  3rd  contents  123  aaa  file content  content  mutiple line  rename text file with content  rename text file with content line  rename multiple files and content  rename multiple text files  multiple text rename  change format many files  rename multiple text