awool 当前离线
列兵
@echo off set /a n=0 FOR /F "delims=" %%i in (afile.txt) do ( echo %%i >> bfile.txt set /a n=%n%+1 echo %n% if %n% equ 1 ( echo welcom you! >> bfile.txt ) )复制代码
foxJL 当前离线
荣誉版主
@echo off&setlocal enabledelayedexpansion set /a n=0 FOR /F "delims=" %%i in (afile.txt) do ( echo %%i >> bfile.txt set /a n+=1 echo !n! if !n! equ 1 ( echo welcom you^! >> bfile.txt ) ) pause复制代码
TOP
terse 当前离线
中将
@echo off set /p str=<"a.txt" >bfile.txt ( echo %str% echo welcom you! more +1 a.txt ) pause复制代码
digger 当前离线
上等兵
@echo off&setlocal enabledelayedexpansion set m=1 for /f "delims=" %%i in (afile.txt) do ( if "!m!"=="1" (echo.%%i&echo.welcom you^^!&set m=) else echo %%i )>>bfile.txt pause复制代码
522235677 (张三)当前离线
少校