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
Here's another variant that will work.
dir *.xml | Rename-Item -NewName {$_.BaseName + ".tmp"}
$_.BaseName will do the "base" name without the (last) extension.
$_.BaseName