
CODE: [Copy to clipboard]@echo off
for /f "delims=" %%a in (1.txt) do (
set /a n+=1
>>1_new.txt echo %%a
if "%%a" equ "ppppp" goto next
)
:next
set /a n+=1
>>1_new.txt echo qqqqq
>>1_new.txt more +%n% 1.txt
move /y 1_new.txt 1.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |