byz001 当前离线
列兵
评分人数
TOP
terse 当前离线
中将
@echo off&setlocal enabledelayedexpansion (for /f "tokens=*" %%i in (a.txt) do ( for %%j in ("%%i") do set str=!str! %%j echo!str!&set "str=" ))>b.txt复制代码
find 当前离线
少将
apang 当前离线
上将
@echo off for /f "delims=" %%a in (a.txt) do ( set str= call :lp %%a call echo,%%str:~1%% ) pause&goto :eof :lp if not "%1"=="" set "str=%str% %1"&shift&goto lp复制代码
@echo off (for /f "tokens=1-3" %%a in (a.txt) do ( echo,%%a %%b %%c ))>b.txt复制代码