fengyuyi 当前离线
列兵
@echo off & setlocal enabledelayedexpansion set aa=0 for /f "eol=/delims=" %%b in (1.txt) do ( echo %%b set /a "bds[!aa!] = %%b",aa=aa+1 echo !aa! )复制代码
DAIC 当前离线
中将
@echo off setlocal enabledelayedexpansion set aa=0 for /f "eol=/ delims=" %%b in (1.txt) do ( echo %%b set "bds[!aa!]=%%b" set /a aa+=1 echo !aa! ) REM 将数组中的内容显示出来 set bds pause复制代码
TOP
terse 当前离线
set /a aa-=1 for /L %%i in (0,1,!aa!) do echo !bds[%%i]!复制代码