Skip to content

Instantly share code, notes, and snippets.

@vjandrea
Created May 20, 2019 11:08
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 vjandrea/39b2fecfd69661519c39e607210447f8 to your computer and use it in GitHub Desktop.
Save vjandrea/39b2fecfd69661519c39e607210447f8 to your computer and use it in GitHub Desktop.
Clean Mac folders on Windows
@echo Removing .DS_STORE...
DEL /S ".DS_STORE"
@echo ...OK
@echo.
@echo Removing Thumbs.db...
DEL /S /AH "Thumbs.db"
@echo ...OK
@echo.
@echo Removing __MACOSX...
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d __MACOSX') do ( rd /s /q "%%i")
@echo ...OK
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment