I\'m trying to do the following:
Rename-Item c:\\misc\\*.xml *.tmp
I basically want to change the extension on every files within a directory t
dir -Recurse | where-object -FilterScript {$_.Extension -eq ".xml"} | Rename-Item -NewName {[System.IO.Path]::GetFileNameWithoutExtension($_.fullname) + ".tmp"}
use -WhatIf to evaluate the result first