I need to rename around 5000 files that have the following naming format:
"322xxx-710yy.tiff"
i need to remove -710yy from the name to get 322xxxx.tiff
can anyone suggest a rename-item command for power-shell to do this?
i tried:
get-childitem -filter "322*" -recurse | Rename-item -NewName{$_.name -replace '-710*', ''}
but all that does is remove the "710" leaving the remaining characters after it.