即是有红字所在行。
求大家帮帮忙!作者: netbenton 时间: 2009-1-31 03:13 @echo off
set two=
for /f "tokens=1,2,* delims=," %%a in (a.txt) do (
call :sub %%a %%b "%%c"
)
goto :eof
:sub
if not defined two goto :sk
if not "%two%"=="%2" >>b.txt echo.%str%
:sk
set "two=%2"
set "str=%1,%2,%~3"
goto :eof
谢绝 slore 提点
不好意思,修改一下,这次应该可以了
[ Last edited by netbenton on 2009-1-31 at 11:37 ]作者: slore 时间: 2009-1-31 03:51 标题: 3个错误哦