@echo off cd /d "%~dp0" for /f "delims=" %%i in ('dir /b /a-d') do ( if "%%i" neq "%~nx0" ( for /f %%j in ("%%~ni") do ( if not exist "%%j" ( md "%%j" ) move "%%i" "%%j\" ) ) )复制代码