
CODE: [Copy to clipboard]@echo Off
cd.>tiao.txt
For /f "Tokens=1* Delims=:" %%a in ('Findstr /n .* "server.xml"') do (
Set "var=%%b" & set /a n=%%a+1
Setlocal EnableDelayedExpansion
Echo.!var!
If "!var:~,8!" equ "<^!-- ===" (Echo 绝对找到.& Goto :next)
EndLocal
)>>tiao.txt
:next
More +%n% "server.xml">>tiao.txt
start "" "tiao.txt"
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |