2012-03-14 75 views
0

我最近安裝了VS 11測試版,此後我遇到了一些奇怪的事情。 本週有好幾次我固定在任務欄上的一些應用程序的圖標就消失了。那麼,他們並沒有真正消失,但他們與相同的默認窗口圖標replce。任務欄快捷方式圖標在VS 11 Beta安裝後不斷消失

我可以用下面的方法解決此問題:

  1. 導航到C:\用戶\\ AppDate \本地
  2. 通過任務管理器刪除IconCache.db
  3. 殺死的Explorer.exe。
  4. 通過taskmanager重新啓動explorer.exe。

這有助於一段時間,但隨後圖標只是被重新替換。最後一次發生的是安裝了Visual Studio 2005/2008 SP1的安全更新之後。

任何人都遇到同樣的問題? 有人知道爲什麼會發生這種情況,以及如何解決這個問題,而不是完全卸載VS 11?

+0

FYI該產品還沒有正式名稱。當它發生時,它不會是「Visual Studio 2011」(過去一年)。 「Visual Studio 11」中的「11」是指版本號(Visual Studio 2010是版本10; VS2008是版本9)。 – 2012-03-20 16:04:06

回答

1

我所描述的問題,在此期間安裝Visual Studio 2012的RTM版本然而,在最後消失在兩者之間,我用肖恩·布林克的一個批處理文件來恢復圖標:

:: Created by: Shawn Brink 
:: http://www.sevenforums.com 
:: Tutorial: http://www.sevenforums.com/tutorials/49819-icon-cache-rebuild.html 


@echo off 
cls 
echo The Explorer process must be killed to delete the Icon DB. 
echo. 
echo Please SAVE ALL OPEN WORK before continuing. 
echo. 
pause 
echo. 
C:\Windows\System32\taskkill /IM explorer.exe /F 
echo. 
echo Attempting to delete Icon DB... 
cd /d %userprofile%\AppData\Local 
del IconCache.db /f /q /ah 
echo. 
pause 
echo Icon DB has been successfully deleted. 
echo. 

:main 
echo Windows 7 must be restarted to rebuild the Icon DB. 
echo. 

:wrong 
set /p choice=Restart now? (Y/N) and press Enter: 
If %choice% == y goto Yes 
If %choice% == Y goto Yes 
If %choice% == n goto No 
If %choice% == N goto No 
goto wrong 

:Yes 
C:\Windows\System32\shutdown /R /f /t 00 
exit 


:No 
echo. 
echo Restart aborted. Please remember to restart the computer later. 
echo. 
echo You can now close this command prompt window. 
explorer.exe 
相關問題