netdzb 当前离线
上尉
TOP
went 当前离线
少校
qixiaobin0715 当前离线
大校
newswan 当前离线
for /f "usebackq delims=" %%a in (`dir /b *.txt`) do ( call :f "%%a" ) for /f "usebackq tokens=2 delims==" %%a in (`set _`) do ( echo %%a ) goto :END :f set n=%random% if defind _%n% goto :f set _%n%=%~1 goto :eof复制代码
@echo off setlocal enabledelayedexpansion for /l %%a in (1,1,!n!) do set #!random!=%%a for /f "tokens=2 delims==" %%i in ('set #') do echo,%%i pause复制代码