Skip to content

Instantly share code, notes, and snippets.

@mjdescy
Created May 7, 2014 17:59
Show Gist options
  • Save mjdescy/a683c1bf880409bb9d5c to your computer and use it in GitHub Desktop.
Save mjdescy/a683c1bf880409bb9d5c to your computer and use it in GitHub Desktop.
Windows PowerShell Batch Rename Files
dir | Rename-Item -NewName { $_.name -replace "OldText", "ReplacementText" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment