I have a lot of html files in Folder-1 and the same number of files in Folder-2. The name of the files is the same on both folder, only the content is different. As you can see in this image what I want to do, is to copy the lines from <!--START-->
to <!--FINNISH -->
and paste them to other files from second folder in the point PUT-HERE-THE-CODE
Example of html Folder-1
</td>
</tr>
</tbody>
</table>
<!-- END poza -->
<!-- INCEPE COLOANA STANGA -->
<table align="center" border="0" cellpadding="0" cellspacing="0" width="1059">
<tbody><tr></tr>
<tr><td background="index_files/tata2.jpg" bgcolor="#D5E5EB">
<!--START-->
<img src="https://superuser.com/index_files/linkuri_sus.jpg" alt="" usemap="#FPMap1">
<map id="FPMap1" name="FPMap1">
<area shape="rect" coords="907,16,1031,41" href="https://justpaste.it/redirect/7r6a2/https://my-website.com/abonament-membership.html" title="Abonament Membership" />
<area shape="rect" coords="907,46,1031,71" href="https://justpaste.it/redirect/7r6a2/https://my-website.com/webinarii.html" title="Webinarii" />
<area shape="rect" coords="417,15,480,42" href="https://justpaste.it/redirect/7r6a2/https://my-website.com/cars20/" target="_new" alt="ART 2.0" title="Leadership ART 2.0" />
<area shape="rect" coords="515,15,578,42" href="https://justpaste.it/redirect/7r6a2/https://my-website.com/cars30/" target="_new" alt="ART 3.0" title="Leadership ART 3.0" />
<area shape="rect" coords="614,15,677,42" href="https://justpaste.it/redirect/7r6a2/https://my-website.com/cars40/" target="_new" alt="ART 4.0" title="Leadership ART 4.0" />
<area shape="rect" coords="715,15,772,42" href="https://justpaste.it/redirect/7r6a2/https://my-website.com/cars50/" target="_new" alt="ART 5.0" title="Leadership ART 5.0" />
<area shape="rect" coords="814,15,871,42" href="https://justpaste.it/redirect/7r6a2/https://my-website.com/cars60/" target="_new" alt="ART 6.0" title="Leadership ART 6.0" />
<area shape="rect" coords="860,47,885,71" href="https://justpaste.it/redirect/7r6a2/http://pinterest.com/cars/things-for-my-wall/" target="_new" alt="Pinterest" title="Pinterest" />
<area coords="323,15,374,42" href="https://justpaste.it/redirect/7r6a2/https://my-website.com" shape="rect" />
</map>
<!--FINNISH -->
<div id="aliniere_link_dreapta">
<div id="qm0" class="qmmc">
<ul id="sidebarNavigation">
.....
Example of html Folder-2
<body>
<script type="text/javascript">(function(d, t, e, m){
window.RW_Async_Init = function(){
RW.init({
huid: "260506",
uid: "235d3ade555f5f6d5e9dad4b7f74f2bc",
source: "website",
options: {
"advanced": {
"layout": {
"align": {
"hor": "center",
"ver": "top"
}
}
},
"size": "medium",
"style": "oxygen",
"isDummy": false
}
});
RW.render();
PUT-HERE-THE-CODE
};
// Append Rating-Widget JavaScript library.
var rw, s = d.getElementsByTagName(e)(0), id = "rw-js",
l = d.location, ck = "Y" + t.getFullYear() +
"M" + t.getMonth() + "D" + t.getDate(), p = l.protocol,
f = ((l.search.indexOf("DBG=") > -1) ? "" : ".min"),
a = ("https:" == p ? "secure." + m + "js/" : "js." + m);
if (d.getElementById(id)) return;
rw = d.createElement(e);
rw.id = id; rw.async = true; rw.type = "text/javascript";
rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck;
s.parentNode.insertBefore(rw, s);
}(document, new Date(), "script", "rating-widget.com/"));</script>
...