- 帖子
- 56
- 积分
- 100
- 技术
- 8
- 捐助
- 0
- 注册时间
- 2017-4-29
|
2楼
发表于 2017-7-26 15:55
| 只看该作者
@set @n=0;/* & echo off
dir /b *.txt|cscript -nologo -e:jscript "%~0" ""
exit/b & rem */
arg = WScript.Arguments(0);
fso = new ActiveXObject("Scripting.FileSystemObject");
while (!WSH.StdIn.AtEndOfStream) {
f = WSH.StdIn.ReadLine();
txt = fso.OpenTextFile(f,1).ReadAll();
{
txt = txt.replace(/(aaaaaaaa)(\r\n)+(bbbbbbbbb)/g,"$1$2插入内容$2$3");
};
fso.OpenTextFile(f,2).Write(txt);
} |
-
1
评分人数
-
|