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: 2325
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 rename html files with specified text from html title tags? (65%)
How to batch rename html files to specified text from html title tags? (65%)
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 files by removing unwanted parts? (60%)
How to batch rename image files by adding picture width and height? (60%)
How to batch rename PDF files with the date inside the file? (59%)

Check Demo of Batch file rename
Keywords:
renamed  similar  how to batch rename html files  rename html files  rename html  batch rename html  batch rename text files  batch rename text  tags  nth  remove pair of html tags  rename text file in html  batch rename html text  rename html file pair  batch rename pair files  rename h2 html  rename files automatically text  adding filename html