Command Line remove Empty Sub Directories or Folders

In Knowledge Base Blog by angeladmin

for /f “delims=” %d in (‘dir /s /b /ad ^| sort /r’) do rd “%d”