/ Published in: Windows PowerShell

Change file extension if required
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
get-childItem | rename-item -newname { "$($_.BaseName -replace '_.+$','')$($_.Extension)" } get-childItem | Where {$_.Extension -eq ".FILEXT"} | rename-item -newname { "$($_.BaseName -replace '_.+$','')$($_.Extension)" } get-childItem -recurse | rename-item -newname { "$($_.BaseName -replace '_.+$','')$($_.Extension)" }
Comments
