Created
December 30, 2016 10:11
-
-
Save Efreak/a136a0366d5f7ab3e30ce6c99ac7f42a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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