将“Mac隐藏文件删除批处理.txt”文件下载好后,放到需要执行操作的文件夹根目录里,将txt改成bat格式,双击执行即可。
其中“Mac隐藏文件删除批处理.txt”内容如下:
@echo off
setlocal enabledelayedexpansion
rem 列出并删除 .DS_Store 文件
echo Listing .DS_Store files...
dir /s /b /a:h .DS_Store
echo.
echo Deleting .DS_Store files...
del /s /q /a:h .DS_Store
echo.
rem 列出并删除 ._ 开头的文件
echo Listing ._ prefixed hidden files...
dir /s /b /a:h ._*
echo.
echo Deleting ._ prefixed hidden files...
del /s /q /a:h ._*
echo.
echo All operations completed.
pause

2915

被折叠的 条评论
为什么被折叠?



