For anyone prefering the powershell way, this script worked for me:
$desktopinis = gci -Recurse -Hidden . | where { $_.Name -eq "desktop.ini" }
foreach ($ini in $desktopinis) {
$content = $ini | get-content
foreach ($line in $content) {
if ($line -cmatch "^LocalizedResourceName=") {
$newname = $line.substring(22) # propertyname plus one for the equals sign
$before = $ini.Directory.FullName
$after = $ini.Directory.Parent.FullName + "\" + $newname
Write-Host ("Renaming '" + $before + "' to '" + $after + "'.")
Move-Item -Path $before -Destination $after
Remove-Item -Path ($after + "\desktop.ini") -Force
}
}
}
It looks for desktop ini files recursively in the current folder and renames directories that contain them and where they contain a LocalizedResourceName to their shown name, then deletes the desktop ini file.
The output should be sufficient to revert what was done if anything goes sideways.
Without warranty.