pengyou86 当前离线
五级士官
TOP
CrLf 当前离线
论坛巡查
BAT-VBS 当前离线
少将
QIAOXINGXING 发表于 2012-10-3 22:41
QIAOXINGXING 当前离线
六级士官
@echo off&SetLocal EnableDelayEdexpansion&cd /d "%~dp0" (for /f "tokens=1,2 delims=:" %%a in (11.txt) do ( if defined flag ( echo %%b set "flag=" ) else ( set /p str=%%b = <nul set flag=1 ) ))>2.txt pause复制代码
请修改标题。 QIAOXINGXING 发表于 2012-10-3 10:52
@echo off&SetLocal EnableDelayEdexpansion&cd /d "%~dp0" for /f "delims=" %%a in (11.txt) do ( if defined flag ( echo %%a set "flag=" ) else ( set /p str=%%a<nul set flag=1 ) ) pause复制代码