ChangeExtension()
System.IO.Path
ChangeExtension
*.ps1
*.txt
foreach ($file in get-item *.ps1) { rename-item $file ([System.IO.Path]::ChangeExtension($file, 'txt')) }
Index