Skip to content

Instantly share code, notes, and snippets.

@StudioEtrange
Last active January 20, 2024 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StudioEtrange/338ba36b3d1602ee08ad955af6c92b35 to your computer and use it in GitHub Desktop.
Save StudioEtrange/338ba36b3d1602ee08ad955af6c92b35 to your computer and use it in GitHub Desktop.
set "FOLDER=X:\FOLDER"
for /r "%FOLDER%" /d %F in (.) do @dir /b "%F" | findstr "^" >nul || echo %~fF && rmdir /Q "%~fF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment