本帖最后由 pcl_test 于 2016-2-1 21:52 编辑
- taskkill /f /im explorer.exe
- 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"
- 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
- start explorer
-
- explorer.exe "%cd%"
复制代码 重建图标缓存后,能打开当前(最后)所在的目录。难点在于,此时是添加在右键执行的。即是要打开的目录是最后鼠标右击的目录(可能是桌面,可能是其它文件夹)。
能做到吗? |