#NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Loop, %0% { GivenPath := %A_Index% FileRead, oldhtml, *P65001 %GivenPath% html := oldhtml html := RegExReplace(html,"simU)\stppabs=""(.*)""","") html := RegExReplace(html,"simU)\shref=""javascript:if\(confirm(.*)"""," href=""#""") html := RegExReplace(html,"simU)(*BSR_ANYCRLF)\R(.*)\R","") StringReplace, html, html, create_menu(`'http://codeigniter.org.cn/user_guide/`'), create_menu(`'../`'), All if(html != oldhtml) { FileCopy, %GivenPath%, %GivenPath%.bak FileDelete, %GivenPath% FileAppend, %html%, %GivenPath%,UTF-8-RAW } }