windows的图标缓存bug真讨厌!

1,如果某一个文件夹与svn的关联?很抱歉,TSVN并不提供这样的功能,只能手动把所有.svn文件夹都干掉的方式来取消掉关联。手动一个一个的干掉还不累死啊??来个自动的吧!
用下面的方式在问家家右键加一个“Delete SVN Folders”的菜单,多简单啊~呵呵~
用法:先建一个文件叫xxx.reg
然后再里面写入下面内容:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""

然后再你要取消关联的文件夹上点Delete SVN Folders。

删除完了之后开心了,可是发现文件夹竟然还是下面这个样子

妈的,该死的windows的图标缓存bug,svn官方解释:

Why do the overlay icons sometimes change to random graphics?

The Windows icon cache is a fairly buggy creature. You can solve this in one of the following ways:

  • Install Microsoft's TweakUI and run the option to rebuild icons.
  • Or increase the icon cache size. Go to HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer and add a new String Value called Max Cached Icons. The default value is 500 - try increasing it to 2048 (see Q132668 in the Microsoft knowledge base for more details).
  • Or delete the file called ShellIconCache in your Windows directory. And reboot.
  • With TortoiseSVN 1.3.0 and later, you can also rebuild the icon cache by calling TortoiseProc from the command line like this TortoiseProc.exe /command:rebuildiconcache

不爽,都不爽,还好咱用的1.3.0以上版本,用自带的命令重建一下缓存吧~
TortoiseProc.exe /command:rebuildiconcache
运行完,一切正常了哦~

转载于:https://my.oschina.net/jing31/blog/6592

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值