youxianwei 当前离线
一级士官
qixiaobin0715 当前在线
大校
@echo off cd /d "D:\abc" for /d %%a in (*) do ( for /d %%b in ("%%a\*") do ( for /d %%c in ("%%b\*") do move "%%c" "%%a\" ) ) pause复制代码
TOP
xp3000 当前离线
少尉
@echo off&setlocal EnableDelayedExpansion @for /f "delims=" %%i in ('dir /a:d /b') do ( pushd "%%i" &echo 进入 %~dp0%%i for /f "delims=" %%j in ('dir /a:d /b') do ( echo 移动 %~dp0%%i\%%j 到 %~dp0 move "%~dp0%%i\%%j" "%~dp0" ) popd ) pause复制代码