Batch renaming in PowerShell
I'm trying to update a bunch of .jpg images so that they refresh on my website. They're currently stored on my PC like this: media +- random-project | +- 1.jpg | +- 2.jpg | +- 3.jpg | `- thumb.png +- another-random-project | +- 1.jpg | `- thumb.png I'm trying to batch rename all 1.jpg, 2.jpg etc. to 1a.jpg, 2a.jpg . I'm thinking using Windows PowerShell and something like Get-ChildItem -Recurse -Filter "[0-9]+.jpg" | foreach { $_.FullName} Dir *.jpg | Rename-Item -NewName { $_.Name -replace "[0-9]+.jpg","[0-9]a.jpg" } but have never used the program before. What do you think? mklement0 It's