PowerShell: Rename file’s file extension

1. Open PowerShell

2. CD into directory to work on

3. Execute the following command:

get-childitem * -recurse | rename-item -newname { $_.name -replace ".txt",".bcp" }

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.