@echo off&setlocal enabledelayedexpansionset m=1(for %%a in (*) do ( set/a "n+=1,1/(100*m-n+1)"||(set/am+=1) md !m!&move "%%a" .\!m!\))2>nul
就把第3行改一下:for /f "delims=" %%i in ('dir/b/a-d')do if not "%%i"=="%~nx0" (