qixiaobin0715 当前离线
大校
@echo off for /d %%a in (*) do ( if exist "%%a\%%a" ( xcopy "%%a\%%a" "%%a\" /e rd /s /q "%%a\%%a" ) ) pause复制代码
TOP
@echo off for /f "delims=" %%a in ('dir /s /b /ad^|sort /r') do ( if exist "%%a\%%~nxa" ( xcopy "%%a\%%~nxa" "%%a\" /e rd /s /q "%%a\%%~nxa" ) ) pause复制代码