spevan 当前离线
列兵
tmplinshi 当前离线
版主
@echo off setlocal enabledelayedexpansion (for /f "delims=" %%a in (a.txt) do ( set str= set /p str= echo,%%a echo,!str! )) <b.txt >a_b.txt复制代码
TOP
@echo offsetlocal enabledelayedexpansion( set /p str=<a.txt echo,!str! for /f "skip=1 delims=" %%a in (a.txt) do ( set str= set /p str= echo,%%a echo,!str! )) <b.txt >a_b.txt复制代码