Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1087.Batch file rename -- How to rename files to the first and last line of file contents?

User: Stefan -- 2013-06-15          << 1086  1088 >>
Hits: 4095
Type: Batch file rename   
Search all Batch file rename examples
Description:
How do I batch rename text-files to the first line in the content plus a minus  
sign plus the last line of content
Input Sample:
Cryin in the rain 
 
A black cat moans 
When he's burning with the fever 
A stray dog howls 
When he's lonely in the night 
A woman goes crazy 
With the thought of retribution 
But, a man starts weeping 
When he's sick and tired of life 
 
David Coverdale - 1986
Output Sample:
Cryin in the rain - David Coverdale -  
1986
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 to "batch runner" window 
3. set "set output filename" to: 
 
4. check filename preview of output file column, and make sure it is correct(Note: for long filename, it may not be displayed completely in the cell, you should move your mouse point on the filename to see detail) 
5. click "File Rename", done.

Screenshot 1:  Batch_Runner_Window


Similar Examples:
How to rename files with part of first line in file content? (88%)
How to rename mutiple files with the 3rd and 4th line in file content? (80%)
How to batch rename files with the first word of file contents? (80%)
How to rename files to the last 10 chars of 3rd line of file content? (79%)
How to batch rename files to the first 8 characters of the second line of file content? (77%)
How to batch rename text files with random line from file contents? (76%)
Is there a way to batch rename files with the first line of the file content? (76%)
How to batch rename files with the first line of file content as new file name? (75%)

Check Demo of Batch file rename
Keywords:
long filename  plus  complete  asp  cell  sig  contents  tel  scalar  batch rename text  file minus the file  batch rename first line of text  rename to first line of text  batch rename text files to first line  rename files to the first line of text  rename text files first line  rename file to first line of text  rename to first line of file text