1. 程式人生 > >[powershell] 批量重新命名,修改檔名中的部分字串

[powershell] 批量重新命名,修改檔名中的部分字串

 

例項:替換一個目錄下所有的字幕檔案從720p到1080p

ls $Path -Include 'ass' -Recurse |ForEach-Object{Rename-Item $_.FullName $_.FullName.Replace('720p','1080p')}