Changing the case of files

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() 
    } 
}
 
 
comments powered by Disqus