回复 1# Vidisdatadown
- @echo off
- cd /d "%~dp0"
- (for /f "useback delims=" %%a in ("2.txt") do (
- echo %%a
- set /a "n+=1,1/(n%%3)" 2>nul
- if errorlevel 1 (
- set /p str=
- setlocal enabledelayedexpansion
- echo=!str!
- endlocal
- echo=
- )
- )) < "1.txt" > "3.txt"
- pause
复制代码
|