How to replace string in files and file and folder names recursively with PowerShell?

With PowerShell (although other suggestions are welcome), how does one recursively loop a directory/folder and

  1. replace text A with B in all files,
  2. rename all files so that A is replaced by B, and last
  3. rename all folders also so that A is replaced by B?
7
задан zdan 24 July 2012 в 19:09
поделиться