Powershell Scripts

 

Rename files in a directory before the extensions.

(Get-ChildItem -Recurse -File -Filter *.*) |
Rename-Item -NewName { $_.BaseName + ‘-anytext’ + $_.Extension }

Leave a Comment