@echo off
set end=
(call :sub
)>1.tmp
type 1.tmp
goto :eof
:sub
for /f "tokens=1* delims=:" %%a in ('findstr /n .* 1.txt') do (
set "str=%%b"
setlocal enabledelayedexpansion
if not defined end echo.!str!
if "!str:~0,3!"=="宋体'" set/a n+=1&if !n!==2 for /f "delims=" %%i in (2.txt) do set "s2=%%i"&echo.!s2!
if !n!==7 set "end=ghjkklll;;;';';'"
if "!str!"=="!end!" set end=
call :sub1
)
goto :eof
:sub1
endlocal&set n=%n%&set end=%end%
[ Last edited by netbenton on 2009-2-10 at 23:53 ]作者: xeibobin 时间: 2009-2-13 14:13 不好意思,最近忙,没有上来,现在才看到你们的回帖。
是指原文件1.txt中的,其实for也可以,请大家帮忙了。。。
也感谢netbenton了作者: xeibobin 时间: 2009-2-13 14:15 呵呵,评错分了。