pcrock 当前离线
列兵
@echo off&setlocal enabledelayedexpansion set /a "n=0" for /f "tokens=1,2 delims=,$" %%a in ('more a.txt^|findstr /i ","') do ( set /a n+=1&set /p =%%a<nul &if !n!==6 (echo.&set n=)) echo. set /p "u=输入名称:"复制代码
评分人数
zaqmlp 当前离线
上尉
TOP
xxpinqz (YiFeng)当前离线
中校
@echo off (for /f "tokens=1* delims=," %%a in (a.txt) do ( if "%%b"=="" ( if not defined . ( echo,%%a set .=. )else ( echo, echo,%%a ) ) else set /p "=%%a " ))<nul pause复制代码
@echo off (for /f "tokens=1* delims=," %%a in (a.txt) do ( if "%%b"=="" ( set n=-1 if not defined . ( echo,%%a set .=. ) else ( echo, echo,%%a ) ) else set/an+=1,1/(6-n^)||(echo,&set n=0)&set /p "=%%a " ))<nul 2>nul pause复制代码
@echo off&setlocal enabledelayedexpansion&set m=1000 (for /f "tokens=1* delims=," %%a in (b.txt) do ( if "%%b"=="" ( set n=-1 if not defined . ( echo,%%a set .=. ) else ( echo, echo,%%a ) ) else set/an+=1,m+=1,1/(6-n^)||(echo,&set n=0)&set /p "=!m:~-3!.%%a " ))<nul 2>nul pause复制代码