a6c123 当前离线
列兵
@echo off if not exist newtxt md newtxt for /f "delims=" %%a in ('dir /a:-d /b *.txt') do ( set file=%%a SetLocal EnableDelayedExpansion set /a RanNum = !random! %% 10 + 1 >"newtxt\!file!" sort /+!RanNum! "!file!" EndLocal )复制代码
评分人数
TOP