Monday, June 29, 2015

Recursively delete all empty directories using .BAT/.CMD file

rmdir_empty.bat

@echo off
for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rmdir "%%d"

No comments:

Post a Comment