Skip to content

Instantly share code, notes, and snippets.

@Efreak Efreak/findempty.cmd
Created Dec 30, 2016

Embed
What would you like to do?
@echo off
echo "Removing empty subdirectories"
timeout /t 10
cls
for /d /r %1 %%A in (.) do (
dir /a /b "%%~fA" 2>nul | findstr "^" >nul || rmdir "%%~fA"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.