- 积分
- 43
- 最后登录
- 2020-5-13
- 精华
- 0
- 阅读权限
- 10
- 主题
- 1
- UID
- 92996
- 帖子
- 108
- PB币
- 1682
- 威望
- 0
- 贡献
- 0
- 技术
- 0
- 活跃
- 147
- UID
- 92996
- 帖子
- 108
- PB币
- 1682
- 贡献
- 0
- 技术
- 0
- 活跃
- 147
|
发表于 2015-9-11 21:48:01
IP属地浙江
|显示全部楼层
我也碰到过相关情况
也因为这个原因,重装了好几次系统
晚上最新碰到就是优化了桌面图标后就乱了(功能是去掉快捷方式和箭头)
如果不优化,没有任何问题
我现在贴出代码,看看是哪行代码出问题
运行这个以后
桌面图标就乱了
并且卸载都没用
@echo *****去小箭头*****
@goto startch
:star
@echo !按鍵錯誤,請重新選擇!
:startch
@set /P CHS=[1]安裝,[2]解除安裝,[Q]退出!
@if /I "%CHS%"=="1" goto install
@if /I "%CHS%"=="2" goto uninstall
@if /I "%CHS%"=="Q" exit
@if /I "%CHS%"=="q" exit
@goto star
:install
::去除快捷字樣
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v link /d "00000000" /t REG_BINARY /f
del "%userprofile%\AppData\Local\iconcache.db" /f /q
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer
@exit
:uninstall
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer
@exit |
|