
CODE: [Copy to clipboard]@echo off
for /f "tokens=1* delims=:" %%i in ('findstr /n .* LOGO.TXT') do (
if %%i==2 echo %%j>test.txt
if %%i==3 echo %%j>>test.txt
if %%i==7 echo %%j>>test.txt
)
start test.txt
CODE: [Copy to clipboard][ Last edited by ThinKing on 2007-7-4 at 12:01 PM ]@((for /F "delims=: tokens=1,2*" %%a in ('findstr /n .* ii.txt^|findstr "^2 ^3 ^7"') do @echo %%c)>tep.txt)&&start tep.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |