Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

503.Batch file rename -- How to batch rename html files to the content that between a pair of h2 tags?

User: Patrick Ong -- 2010-05-09          << 502  504 >>
Hits: 541
Type: Batch file rename   
Search all Batch file rename examples
Description:
I refer to similar example such as: http://www.mind-pioneer.com/services/480_Batch_file_rename.html#this,

How to batch rename text files by adding the value in the content (i.e. in-between certain tags) to filename?

I have some files like 1.htm, 2.htm, 3.htm, I want to automatically rename 1.htm, 2.htm, 3.htm according to the value in the content that is in-between the tags <h2> and </h2>
Input Sample:
<a href='http://www.vtc.com/modules/products/titleDetails.php?sku=33425&affiliate=campus'><h2>100 Ways To Get More From Your Digital Camera</h2></a>
Output Sample:
100 Ways To Get More From Your Digital Camera
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 from Windows File Browser, and drop to "Batch Runner" window
3. check option of "Set output filename" option, and change the following entry to:

4. make sure the "output file" column is correct, remove all files int the list that are not renamed correctly(can click title of "output file" to sort).
5. click "File Rename" button, done!

Similar Examples:
How to batch remove all the text that enclosed by a pair of parenthesis? (62%)
How to batch rename picture files to the data and time of the pictures? (62%)
How to batch rename each html file to the title of the html file? (61%)
How to batch rename image files by adding picture width and height? (60%)
How to batch rename files from month name to month number? (59%)
How to batch rename mp3 files by adding artist name behind? (59%)
How to batch rename files by generating a random word that in the list? (59%)
How to batch rename text files by adding the value of file content to filename? (59%)

Check Demo of Batch file rename
Keywords:
renamed  similar  rename html files  batch rename html  rename html  batch rename text files  batch rename text  rename text  tags  nth  rename html file pair  remove pair of html tags  batch rename pair files  batch rename html text  batch rename from text list  rename from text list  rename files text list  adding filename html