- @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(/([^\r\n]+)/g,"http:\/\/baidu\.com\/search_result\.php\?search_id=$1&search_type=search_users&x=43&y=15");
- fso.OpenTextFile(f,2).Write(txt);
- }
- pause
复制代码 不知道时不时你想要的 |