How can I bulk rename files using PowerShell?

前端 未结 4 1263
时光取名叫无心
时光取名叫无心 2021-02-20 12:22

I\'m trying to recursively rename a bunch of TFS folders using tf rename, PowerShell and a regular expression but I\'m having some issues with PowerShell as I haven

4条回答
  •  我在风中等你
    2021-02-20 12:36

    Notes:

    • TFS has native cmdlets -- no need for tf.exe in most cases.
    • The time complexity of workspace operations depends on the number of pending renames already in the workspace. In TFS 2005/2008 it's significantly worse than linear. Bottom line, you should really consider batching up renames into multiple checkins if you have a large # of items, otherwise every single "tf rename" (or New-TfsPendingChange -Rename if using the cmdlets) will start taking minutes.

提交回复
热议问题