Rename files to lowercase in Powershell
Even though you have already posted your own answer, here is a variation: dir Leaflets -r | % { if ($_.Name -cne $_.Name.ToLower()) { ren $_.FullName $_.Name.ToLower() } } Some points: dir is an alias for Get-ChildItem (and -r is short for -Recurse). % is an alias for ForEach-Object. -cne is a case-sensitive comparison. -ne … Read more