本帖最后由 pcl_test 于 2015-8-15 17:52 编辑
- @if(0)==(0) echo off&cscript -nologo -e:jscript "%~f0"<"1.txt">"2.txt"&pause & exit/b&@end
- var txt = '';
- while(!WScript.StdIn.AtEndOfStream) {
- var str = WScript.StdIn.ReadLine();
- if (/^\s*[\u4E00-\u9FFF]{6,19}\s*$/.test(str))txt=txt+str+'\r\n';
- }
- WSH.Echo(txt);
复制代码
|