批处理高手来下!!!
发布网友
发布时间:2022-11-27 07:39
我来回答
共1个回答
热心网友
时间:2023-10-15 05:59
@echo off&setlocal enabledelayedexpansion
set n=0
for /f "delims=" %%f in (123.txt) do (set a=%%f
call :ABC)
echo %b% %a%>>789.txt
start 789.txt
exit
:ABC
if %n%==0 set b=%a%&set /a n+=1&goto :EOF
if %n%==5 (echo %b% %a%>>789.txt&set n=0&goto :EOF)
set b=%b% %a%&set /a n+=1
goto :EOF