Tuesday, May 15, 2012

Rename multiple files from one type to another

Here's the command that will rename multiple csv files to txt files.

get-childitem *.csv | foreach { rename-item $_ $_.Name.Replace(".csv", ".txt") }

No comments: