0

I saw some people are asking how to "get rid of" the localized names of, say, the Documents, Pictures, Downloads, etc.

But in my case, I want to "restore" it to the default.

This happened when I made my own batch file for some automatic file copy, using the 'xcopy' prompt command.

Any folders affected by this command lost their localized names, and it was unrecoverable - the desktop.ini file was intact, but the explorer fails to apply the settings to the display.

Maybe it is related to the registry?

3

You could have one of two problems, or both.

Normally Windows will not honor the contents of the desktop.ini file unless it has the system attribute set. If is was copied around it probably doesn't. To set that you will have to use the Windows System prompt, it can't be done AFAIK in Windows Explorer. Inside the folder where the desktop.ini file is, use th cd command to get there, type:

ATTRIB desktop.ini

This will show which attirbutes are set. For some reason Windows will not allow you to set/clear the system attribute without also setting/clearing the hidden attribute, even if you're putting it the way it was. You also cannot change either if the readonly attribute is set, so you have to clear/reset it as well if it is set. Knowing what they are, and that the desktop.ini file doesn't need to be set, if the system attribute is not set, set it with this command:

ATTRIB +S +H -R desktop.ini

If the system attribute is set, and it still isn't working, then you probably lost some information from the desktop.ini file when it was moved. Windows likes to strip localizing information from those files when they are copied outside their original place. To restore them you will have to edit each one manually. Notepad works fine for this, or any text editor that you're used to. To edit the files they will need to have the system and readonly attributes off, hidden doesn't matter for this. To make them easier to find in Windows Explorer, having hidden off can help though. For each desktop.ini file you need to edit, go to its folder and type:

ATTRIB -S -H -R desktop.ini

Below is a list of what the files should originally had in them, the important lines in this case are the LocalizedResourceName= and IconResource=, but setting all of them to the original may not hurt either. Once the files are corrected, to make them work again, you will need to reset the attributes with this again:

ATTRIB +S +H desktop.ini

Original desktop.ini contents

Recycle Bin

[.ShellClassInfo]
CLSID={645FF040-5081-101B-9F08-00AA002F954E}
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-8964

Contacts

[.ShellClassInfo]
LocalizedResourceName=@%CommonProgramFiles%\system\wab32res.dll,-10100
InfoTip=@%CommonProgramFiles%\system\wab32res.dll,-10200
IconResource=%SystemRoot%\system32\imageres.dll,-181

Desktop

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769
IconResource=%SystemRoot%\system32\imageres.dll,-183

Documents

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770
IconResource=%SystemRoot%\system32\imageres.dll,-112
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-235

Downloads

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21798
IconResource=%SystemRoot%\system32\imageres.dll,-184

Favorites

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21796
IconResource=%SystemRoot%\system32\imageres.dll,-115
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-173

Links

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21810
IconResource=%SystemRoot%\system32\imageres.dll,-185
DefaultDropEffect=4
[LocalizedFileNames]
Public.lnk=@shell32.dll,-21816
Searches.lnk=@shell32.dll,-9031
Recently Changed.lnk=@shell32.dll,-32813
Music.lnk=@shell32.dll,-21790
Pictures.lnk=@shell32.dll,-21779
Documents.lnk=@shell32.dll,-21770

Music

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21790
InfoTip=@%SystemRoot%\system32\shell32.dll,-12689
IconResource=%SystemRoot%\system32\imageres.dll,-108
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-237
[LocalizedFileNames]
Sample Music.lnk=@%SystemRoot%\system32\shell32.dll,-21806

Pictures

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21779
InfoTip=@%SystemRoot%\system32\shell32.dll,-12688
IconResource=%SystemRoot%\system32\imageres.dll,-113
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-236
[LocalizedFileNames]
Sample Pictures.lnk=@%SystemRoot%\system32\shell32.dll,-21805

Saved Games

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21814
IconResource=%SystemRoot%\system32\imageres.dll,-186

Searches

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-9031
IconResource=%SystemRoot%\system32\imageres.dll,-18
[LocalizedFileNames]
Indexed Locations.search-ms=@shell32.dll,-32811
Everywhere.search-ms=@shell32.dll,-32814
Shared By Me.search-ms=@shell32.dll,-32802
Recent Music.search-ms=@shell32.dll,-32803
Recent Documents.search-ms=@shell32.dll,-32804
Recent Pictures and Videos.search-ms=@shell32.dll,-32806
Recent E-mail.search-ms=@shell32.dll,-32807
Recently Changed.search-ms=@shell32.dll,-32813

Videos

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21791
InfoTip=@%SystemRoot%\system32\shell32.dll,-12690
IconResource=%SystemRoot%\system32\imageres.dll,-189
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-238
[LocalizedFileNames]
Sample Videos.lnk=@%SystemRoot%\system32\shell32.dll,-21807

Public Desktop

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21799

Public Documents

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21801
IconResource=%SystemRoot%\system32\shell32.dll,-235

Public Downloads

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21808

Public Music

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21803
InfoTip=@%SystemRoot%\system32\shell32.dll,-12689
IconResource=%SystemRoot%\system32\shell32.dll,-237

Public Pictures

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21802
InfoTip=@%SystemRoot%\system32\shell32.dll,-12688
IconResource=%SystemRoot%\system32\shell32.dll,-236

Public Videos

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21804
InfoTip=@%SystemRoot%\system32\shell32.dll,-12690
IconResource=%SystemRoot%\system32\shell32.dll,-238
4
  • I appreciate the detailed description about how it works (much more helpful than just giving the solution right away!), but sadly, these are all checked before. ATTRIB shows it has the properties of A S H. Also checked the contents of the desktop.ini file is intact. (Actually I made a rollback for before the XCOPY incident) The encoding of desktop.ini is set in Unicode, which is same as the others. Jan 30 '17 at 7:32
  • Testing my memory here, but try to rename the desktop.ini file temporarily, then rightclick on the folder and select Properties->Customize->Change Icon. Pick anything, don't matter, just something to remind Windows it's supposed to be looking at the desktop.ini. After you apply that, delete the new desktop.ini and rename yours back. (This is from my XP days, so process may be different in 10.) The only Registry area I can think to look in would be HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer. Of course, I hope I'm solving the right problem :/
    – Chindraba
    Jan 30 '17 at 10:20
  • It wasn't exact, but gave me a hint! In the properties of the folder, it doesn't have any icon customizing, but instead, there is a tab for designating the exact place of the Documents folder. I designated a random folder, and then restored the folder position back. Then the new windows started to display the localized name again (had to restart explorer.exe for full implementation). Thank you very much! But I still don't know what happened exactly. :( Jan 30 '17 at 11:41
  • Yipee! Glad you had success finally. That's one of many reasons I escaped from the MS jail and moved into Linux. Even in the DOS days, MS tried to keep the user out of the loop and do what it thought best. I don't mind the system helping me, but let me know what it's doing so I can reverse/prevent it. Now all my "Win" boxes are VMs that I can toss and replace, and mostly for experimentation. Almost launched a Win 10 to deal with this.
    – Chindraba
    Jan 30 '17 at 11:49
0

Easy trick how to restore any personal folder's localisation. Open the Properties dialog of the folder. Go to the Location tab. Change the location to some non-existing folder (e.g. %userprofile%\Documents2) and click OK. First, you will be asked to create the directory - press Yes. Second, you will be asked to move the content of the current folder. Press NO! Then open the properties dialog once again and change the location to the original (i.e. previous) one. Because the previous folder exists, you will be asked whether you want to move the content only. Now confirm this action by pressing YES and then confirm to overwrite desktop.ini file. After you repaired all folders just sign-out and logon again (or restart the computer).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.