Rasm 当前离线
三级士官
CrLf 当前离线
论坛巡查
@echo off (for /f %%a in (1.txt) do ( setlocal enabledelayedexpansion set /p id= set /p name= set /p E-mail= if defined id ( echo !id!,!name!,!E-mail! ) else goto :end endlocal ))>2.txt :end pause复制代码
TOP
apang 当前离线
上将
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in (1.txt) do ( set/a n+=1 set "str=!str!,%%a" if !n! equ 3 echo,!str:~1!&set str=&set n= ) pause复制代码
评分人数