wrrbb 当前离线
列兵
评分人数
apang 当前离线
上将
@echo off for /f "tokens=2 delims== " %%a in (test.txt) do ( echo %%~a ) pause复制代码
TOP
apang 发表于 2012-3-20 10:53
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in ('type "auction.htm"^|findstr /i "auctionid"') do ( set str=%%a set str=!str:*auctionid=! for /f "tokens=1 delims=>=" %%b in ("!str!") do echo %%~b ) pause复制代码