Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinktainer/10581231 to your computer and use it in GitHub Desktop.
Save thinktainer/10581231 to your computer and use it in GitHub Desktop.
Recursive Rename Powershell
foreach($i in dir -Recurse -Include *.xml) {$parent = $i | Split-Path -Parent | Split-Path -leaf; $i | rename-item -newname {$parent + '.xml'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment