ygqiang 当前在线
少尉
评分人数
CrLf 当前离线
论坛巡查
@more +4 %0 >tmp copy /b tmp+empties.bat $ move $ empties.bat exit @echo off for /f "skip=3 delims=" %%a in (%~s0) do rd "%%a" exit复制代码
@echo off (for /f %%a in (empties.bat) do echo rd "%%a")>$ move $ empties.bat pause复制代码
TOP
rem 删除空文件夹 for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do ( for /f "tokens=*" %%j in ('dir /s/ad/b %%i') do rd "%%j" 1>nul 2>nul )复制代码
Hello123World 当前离线
荣誉版主
@echo off&setlocal enabledelayedexpansion for /r %%a in (*.*) do ( del /f /s "%%~nxa" 3>>"%%a" ) 2>nul 4>>%~s0 pause复制代码