Board logo

标题: [系统相关] win7右键能否添加一个“重建图标缓存”菜单项? [打印本页]

作者: Heykuz    时间: 2016-2-1 21:34     标题: win7右键能否添加一个“重建图标缓存”菜单项?

本帖最后由 pcl_test 于 2016-2-1 21:52 编辑
  1. taskkill /f /im explorer.exe
  2. attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"
  3. del /f "%userprofile%\AppData\Local\IconCache.db"
  4. attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"
  5. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db"
  6. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db"
  7. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_102.db"
  8. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db"
  9. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1024.db"
  10. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"
  11. del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
  12. echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams
  13. echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream
  14. start explorer
  15. explorer.exe "%cd%"
复制代码
重建图标缓存后,能打开当前(最后)所在的目录。难点在于,此时是添加在右键执行的。即是要打开的目录是最后鼠标右击的目录(可能是桌面,可能是其它文件夹)。
能做到吗?




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2