#87 One-line batch script to delete empty directories:
Variant 1
for /f "delims=" %%i in ('dir /s /b /ad ^| sort /r') do rd "%%i">NUL
Variant 2
for /f "usebackq" %%d in (<code>"dir /ad/b/s | sort /R"</code>) do rd "%%d"
Recent Comments