联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off for /f "delims=: tokens=1*" %%i in ('findstr /n .* a.txt') do echo %%i.%%j>>b.txt del /q a.txt&ren b.txt a.txt start a.txt
Originally posted by zw19750516 at 2008-4-19 23:48: 这样不会丢失空行,如a.txt @echo off for /f "delims=: tokens=1*" %%i in ('findstr /n .* a.txt') do echo %%i.%%j>>b.txt del /q a.txt&ren b.txt a.txt start a.tx ...
@echo off for /f "delims=: tokens=1*" %%i in ('findstr /n .* a.txt') do echo %%i.%%j>>b.txt del /q a.txt&ren b.txt a.txt start a.tx ...