Featured image of post 使用 PowerShell 批次刪除 .DS_Store 檔案的簡單指令

使用 PowerShell 批次刪除 .DS_Store 檔案的簡單指令

說明如何在 Windows 環境中,使用 PowerShell 批次刪除包含子資料夾內礙眼的 Mac .DS_Store 檔案。只需一個簡短指令,即可輕鬆清理不需要的檔案。

將當前目錄移動到目標資料夾,並執行以下命令以批次刪除 .DS_Store,包括子資料夾中的檔案。

1
Get-ChildItem . -include '.DS_Store' -Recurse -Force | Remove-Item -Force
comments powered by Disqus
使用 Hugo 建立
主題 StackJimmy 設計