- 1>1/* :
- @echo off
- for /f "delims=" %%a in ('dir /b "234.txt"^|cscript -nologo -e:jscript "%~f0"') do echo;%%a
- pause&exit/b
- */
-
- function toFile(file){
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var f1 = fso.OpenTextFile(file,1,false);
- var m = f1.ReadALL().match(/\d+:\d+:\d+(?=\s*\r\n)/g);
- WSH.echo(m);}
-
- while(!WScript.StdIn.AtEndOfStream){
- var f=WScript.StdIn.ReadLine();
- toFile(f);}
复制代码
|