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 *