I'm encountering an issue with bulk renaming folders in the Windows 11 filing system. Specifically, when I attempt to rename multiple folders simultaneously (for example, changing "AUDIO," "EGYPT," "TV," and "MUSIC" to "audio," "egypt," "tv," and "music," respectively), the changes are not applied. Even after refreshing the file explorer view, the folder names remain in capital letters.
I am having to use Powershell in Windows 11 to achieve my goal,
Example.
Get-ChildItem -Path "F:\AUDIO\CRIME" -Directory -Recurse | ForEach-Object {
if ($_.Name -match "[A-Z]") {
$tempName = $_.FullName + "_temp"
Rename-Item -Path $_.FullName -NewName $tempName -ErrorAction Stop
$newName = $_.Name.ToLower()
Rename-Item -Path $tempName -NewName $newName -ErrorAction Stop
}
}