28 August, 2015

Rename files with powershell

A simple powershell script for renaming files in a folder. Goal was to remove the ".txt" extensions from all files:

Get-ChildItem -Filter "*.txt" | Rename-Item -NewName {$_.Name -replace '.txt', ''}

No comments:

Post a Comment