- @echo off&setlocal enabledelayedexpansion
- (for /f "delims=" %%i in (A.htm) do (
- set "str=%%i"
- set "str=!str:*cpulink=!"
- if "!str!" neq "%%i" if "!str:~,1!" == "=" (
- for /f "delims==<" %%i in ("!str!") do echo %%i
- )
- ))>A.txt
- pause
复制代码 JS 混编- @if(0)==(0) echo off & cscript -NoLogo -E:JScript %0 <a.htm >a.txt & pause & exit @end
- var reg = /cpulink=([^<]+)/ig;
- while (!WScript.StdIn.AtEndOfStream){
- var str = WScript.StdIn.ReadLine();
- var s = str.match(/cpulink=([^<]+)/);
- if (s) { WSH.Echo(s[1]) };
- }
复制代码
|