图标缓存 vista_Windows Vista中特殊文件夹恢复为默认文件夹图标的修复

图标缓存 vista

图标缓存 vista

My inbox has been flooded with people asking why the “pretty” icons in their user folder keep turning back into regular folder icons, and what they can do to fix it.  After writing the first article about the Music folder, I decided to just put all of the information into a single article.

我的收件箱里满是人问,为什么用户文件夹中的“漂亮”图标会继续变回常规文件夹图标,以及他们可以采取哪些措施进行修复。 在写完有关Music文件夹的第一篇文章之后,我决定将所有信息放到一篇文章中。

Using the same example as last time, the Music folder here is showing the generic folder icon instead of the slick one that it should be using.

使用与上次相同的示例,此处的“音乐”文件夹显示的是通用文件夹图标,而不是它应该使用的光滑图标。

image

The icons that are displayed on the folders are set through the hidden desktop.ini file inside of each folder. The problem is that a lot of applications seem to screw with this file and cause it to become corrupted or otherwise unusable. What we’ll do here is just reset the offending file to the default values that I’ve listed here.

文件夹中显示的图标是通过每个文件夹中隐藏的desktop.ini文件设置的。 问题在于,许多应用程序似乎都将这个文件搞砸了,并导致该文件损坏或无法使用。 我们在这里要做的只是将有问题的文件重置为我在此处列出的默认值。

To open the desktop.ini file, you’ll need to paste this command into the start menu search or run box, which will open the music folder’s desktop.ini file.

要打开desktop.ini文件,您需要将此命令粘贴到开始菜单搜索或运行框中,这将打开音乐文件夹的desktop.ini文件。

notepad %USERPROFILE%\music\desktop.ini

记事本%USERPROFILE%\ music \ desktop.ini

If you wanted to open the desktop.ini file in the pictures folder instead, you’d substitute “pictures” for “music” in the command, like this:

如果要改为打开pictures文件夹中的desktop.ini文件,则可以在命令中将“ pictures”替换为“ music”,如下所示:

notepad %USERPROFILE%\pictures\desktop.ini

记事本%USERPROFILE%\ pictures \ desktop.ini

You’ll see a file that should look exactly like this, but probably does not.

您会看到一个文件,看起来应该完全像这样,但可能并非如此。

image

Select the entire contents of the file and delete it, replacing the contents with the default values that I’ve listed below. (You only need to pick the one that matches the folder you are trying to edit)

选择文件的全部内容并将其删除,然后将内容替换为下面列出的默认值。 (您只需要选择与您要编辑的文件夹匹配的文件夹即可)

Note that you will need to logout and back in to see the changes, or you could just restart explorer.exe if you are feeling ambitious.

请注意,您将需要注销并重新登录以查看更改,或者,如果您感到雄心勃勃,则可以仅重新启动explorer.exe。

Contacts

联络人

[.ShellClassInfo][email protected]%CommonProgramFiles%\system\wab32res.dll,[email protected]%CommonProgramFiles%\system\wab32res.dll,-10200IconResource=%SystemRoot%\system32\imageres.dll,-181

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

Desktop

桌面

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

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

Documents

文件资料

[.ShellClassInfo][email protected]%SystemRoot%\system32\shell32.dll,-21770IconResource=%SystemRoot%\system32\imageres.dll,-112IconFile=%SystemRoot%\system32\shell32.dllIconIndex=-235

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

Downloads

资料下载

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

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

Favorites

收藏夹

[.ShellClassInfo][email protected]%SystemRoot%\system32\shell32.dll,-21796IconResource=%SystemRoot%\system32\imageres.dll,-115IconFile=%SystemRoot%\system32\shell32.dllIconIndex=-173

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

Links

链接

[.ShellClassInfo][email protected]%SystemRoot%\system32\shell32.dll,-21810IconResource=%SystemRoot%\system32\imageres.dll,-185DefaultDropEffect=4[LocalizedFileNames][email protected],[email protected],-9031Recently [email protected],[email protected],[email protected],[email protected],-21770

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

Music

音乐

[.ShellClassInfo][email protected]%SystemRoot%\system32\shell32.dll,[email protected]%SystemRoot%\system32\shell32.dll,-12689IconResource=%SystemRoot%\system32\imageres.dll,-108IconFile=%SystemRoot%\system32\shell32.dllIconIndex=-237[LocalizedFileNames]Sample [email protected]%SystemRoot%\system32\shell32.dll,-21806

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

Pictures

图片

[.ShellClassInfo][email protected]%SystemRoot%\system32\shell32.dll,[email protected]%SystemRoot%\system32\shell32.dll,-12688IconResource=%SystemRoot%\system32\imageres.dll,-113IconFile=%SystemRoot%\system32\shell32.dllIconIndex=-236[LocalizedFileNames]Sample [email protected]%SystemRoot%\system32\shell32.dll,-21805

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

Saved Games

保存的游戏

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

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

Searches

搜索次数

[.ShellClassInfo][email protected]%SystemRoot%\system32\shell32.dll,-9031IconResource=%SystemRoot%\system32\imageres.dll,-18[LocalizedFileNames]Indexed [email protected],[email protected],-32814Shared By [email protected],-32802Recent [email protected],-32803Recent [email protected],-32804Recent Pictures and [email protected],-32806Recent [email protected],-32807Recently [email protected],-32813

[.ShellClassInfo] LocalizedResourceName = @%SystemRoot%\ system32 \ shell32.dll,-9031IconResource =%SystemRoot%\ system32 \ imageres.dll,-18 [LocalizedFileNames] Indexed Locations.search-ms = @ shell32.dll,-32811Everywhere。 search-ms = @ shell32.dll,-32814由Me.search-ms = @ shell32.dll,-32802Recent Music.search-ms = @ shell32.dll,-32803Recent Documents.search-ms = @ shell32.dll,- 32804最近的图片和视频.search-ms = @ shell32.dll,-32806最近的电子邮件.search-ms = @ shell32.dll,-32807最近更改.search-ms = @ shell32.dll,-32813

Videos

影片

[.ShellClassInfo][email protected]%SystemRoot%\system32\shell32.dll,[email protected]%SystemRoot%\system32\shell32.dll,-12690IconResource=%SystemRoot%\system32\imageres.dll,-189IconFile=%SystemRoot%\system32\shell32.dllIconIndex=-238[LocalizedFileNames]Sample [email protected]%SystemRoot%\system32\shell32.dll,-21807

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

  Hopefully by this point your icons should be back to looking good again…

希望到这一点,您的图标应该又恢复了外观……

image

For extra credit… you can also create a desktop.ini file in any folder and use it to show a custom icon.

为了获得更多荣誉,您还可以在任何文件夹中创建一个desktop.ini文件,并使用它显示自定义图标。

翻译自: https://www.howtogeek.com/howto/windows-vista/fix-for-special-folders-reverting-to-default-folder-icon-in-windows-vista/

图标缓存 vista