RamblingRoss
The blog of Ross Fruen, a .NET consultant

Changing the case of all files within folder hierarchy

To change the case of all files within a folder hierarchy the following PowerScript can be used

dir "ramblingross" -r | % 
{
if (!($_.PsIsContainer) -And $_.Name -cne $_.Name.ToLower())
{
ren $_.FullName $_.Name.ToLower()
}
}

Add a comment

If you want your comment to appear on this page please complete the form below. Your name and email address are optional, although the latter will be required if you want a response. Your email address will not appear against your comment and will only be used to correspond with yourself (where appropriate).

Thanks!

Thank you for submitting your comment, it will appear here after moderation is complete.

Sorry

There was a problem sending your comment, please try again.