|
|

楼主 |
发表于 2009-2-11 21:43:16
|
显示全部楼层
把数据保存本地为txt
然后用下面批处理搞定
- @echo off & SETLOCAL EnableDelayedExpansion
- set _TxtFile=getQQ.txt
- set _OutFile=QQ.txt
- set _GetLine=
- set _GetChar=
- :main
- if exist %_OutFile% copy %_OutFile% %_OutFile%.bak & del /q /f %_OutFile%
- fsutil file Createnew %_OutFile% 0
- for /f "Tokens=* " %%i in (%_TxtFile%) do (
- set "_GetLine=%%i"
- set "_OutLine="
- set "_GetLine=!_GetLine:[url]http://city.qzone.qq.com/html/user/guest.htm#uin=[/url]☆!"
- set "_GetLine=!_GetLine:TA=★!"
- call :READINFILE
- echo !_OutLine! >>%_OutFile%
- )
- goto :END
- :READINFILE
- set ReadFlag=false
- for /l %%i in (0,1,255) do (
- set _GetChar=!_GetLine:~%%i,1!
- if "!_GetChar!"=="" goto :EOF
- if "!_GetChar!"=="★" set ReadFlag=false
- if "!ReadFlag!"=="true" set _OutLine=!_OutLine!!_GetChar!
- if "!_GetChar!"=="☆" set ReadFlag=true
- )
- goto :EOF
- :END
复制代码 |
|