Renaming lots of folders

Associate
Joined
6 Jul 2009
Posts
19
Hi

I was hoping someone could suggest an easy way of renaming lots of folders.

I have a music folder, in which I have a lot folders named 'the' something.

E.g. 'The Beatles'.

I'd like a away to rename all the folders with the 'the' prefix so that it goes at the end.

E.g.'Beatles, The'

I hope that makes sense!, Thanks in advance.
 
A bit late now, but a Powershell one-liner could have done the same:


Get-ChildItem "C:\Music Dir" | Where {$_.PSIsContainer -and $_.Name -match "^the "} | Foreach {Rename-Item $_.Name (
$_.Name.SubString(4) + ", The")}
 
Back
Top Bottom