Skip to content

Instantly share code, notes, and snippets.

@Tiryoh
Last active December 5, 2016 01:16
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 Tiryoh/1c1f0476c18b02e98b6c to your computer and use it in GitHub Desktop.
Save Tiryoh/1c1f0476c18b02e98b6c to your computer and use it in GitHub Desktop.
Delete ".DS_Store" and "^\._.*" on Windows.
@echo off
cls
echo.
echo.Macで作成される"._"から始まるファイルを削除するためのbatです。
echo.Ctrl+Cで中止できます。
echo.このスクリプトの実行によって何らかの不利益が生じたとしても当方は責任を負いかねます。
echo.なにかキーを押すと始まります。
echo.
pause
echo.
echo.削除開始...
echo.
attrib -r -h ._* /s /d
del ._* /s
echo.
attrib -r -h .DS_Store /s /d
del .DS_Store /s
echo.
echo.削除終了しました。
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment