八嘎小天皇 (@ves) 在 备份一下Mac和黑苹果相关的链接 中发帖
win在PowerShell下删除 .DS_Store文件的指令
function Remove-DSStoreFiles {
param (
[string]$Path = "C:\"
)
# Define folders to be excluded
$excludedFolders = @("System Volume Information", "OtherFolderToExclude")
try {
# Get all directories first, excluding system folders
$directories = Get-ChildItem -Path $Path -Directory -Force -ErrorAction SilentlyContinue |
...