zoukankan      html  css  js  c++  java
  • 关于Window的快捷方式,图标缓存的清理

    在打包的时候会发现图标,总是不对,或者有时候桌面快捷方式的图标都丢失了

    可以用以下脚本试试,摘至(

    http://hi.baidu.com/shaoping007/blog/item/2393bb1e8bd8260f41341750.html
    ):

    解决:只需重组系统图标缓存 即可。

    这里有个批处理很好用
    把下面的文字复制到文本文档,改后缀名为.bat,双击运行,ok

    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
     

  • 相关阅读:
    SQL中的数据库设计三范式
    SQL中的DBA命令
    SQL中的视图
    SQL中的索引
    十大程序员必逛网站
    解放双手!你不知道的代码生成神器
    IT体系的演变
    Nginx的六种负载均衡策略
    前端Chrome调试小技巧汇总
    spring boot:使用async异步线程池发送注册邮件(spring boot 2.3.1)
  • 原文地址:https://www.cnblogs.com/enli/p/2047563.html
Copyright © 2011-2022 走看看