Windows 7怎样创建清理系统图标缓存的批处理

  • 单击“开始”,单击“所有程序”,单击“附件”,单击“记事本”

  • 将下面的代码拷贝进记事本里面去

        rem 关闭Windows外壳程序explorer  

      taskkill /f /im explorer.exe  

      rem 清理系统图标缓存数据库  

      attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"  

      del /f "%userprofile%\AppData\Local\IconCache.db"  

      attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"

    del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db"

      del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db"

      del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_102.db"

      del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db"

      del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1024.db"

      del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"

      del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"

      rem 清理 系统托盘记忆的图标  

      echo y reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams

      echo y reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream  

      rem 重启Windows外壳程序explorer  

      start explorer

  • 在菜单栏上单击“文件”,显示的菜单点击“另存为”命令

  • 在左侧导航窗格中单击“桌面”,并将文件命名为“清理系统图标缓存.bat”,单击“保存”按钮

  • 双击执行生成在桌面上的批处理文件

  • Leave a Reply