日期:2014-05-17 浏览次数:20751 次
@if (1==1) @end/* @echo 正在替换,请稍候... @cscript -e:jscript "%~f0">nul @echo 完成!按任意键退出...&pause>nul @goto :eof*/ o = new ActiveXObject("Scripting.FileSystemObject") f = o.OpenTextFile("a.txt", 1) s = f.ReadAll() f.Close() delete f f = o.OpenTextFile("a.txt", 2) f.Write(s.replace(/date=2012-03-04/g, "date=2012-06-12")) f.Close() delete f delete o