SandraRusso 当前离线
一级士官
pcl_test 当前离线
荣誉版主
@echo off cd /d "F:\W\" for /f %%a in ('dir /ad /b') do ( pushd "%%a" for /f %%b in ('dir /ad /b') do ( pushd "%%b" for /f %%i in ('dir /a-d /b') do ( move "%%i" "./.." ) popd rd "%%b\" /s /q 2>nul echo 已删除“%%b”文件夹 ) popd ) pause复制代码
TOP
@echo off set "filesdir=F:\W\" for /f %%i in ('dir /ad /b "%filesdir%"') do ( pushd "%filesdir%%%i" for /l %%a in (2 1 4) do ( xcopy "%%a-*.*" "temp\" xcopy "%%a.*" "temp\" ) del *.* /f /q pushd "temp\" copy *.* "./.." popd rd "temp\" /s /q popd ) pause复制代码
评分人数