博客
关于我
删除桌面图标的小箭头
阅读量:661 次
发布时间:2019-03-15

本文共 1764 字,大约阅读时间需要 5 分钟。

去掉快捷方式的小箭头的操作需要谨慎,以下是两种常用的方法以及恢复方案。

1. 错误的方法(会导致其他问题)

操作步骤:

  • 新建 Notepad 文档,将以下代码复制进去。
  • 将文件扩展名改为 .bat,然后点击运行。
  • 此方法通过删除注册表记录来去除快捷方式的箭头。
  • 命令示例:

    @echo offreg delete HKCR\lnkfile /v IsShortcut /freg delete HKCR\piffile /v IsShortcut /freg delete HKCR\InternetShortcut /v IsShortcut /ftaskkill /f /im explorer.exeexplorer

    问题:这种方法会导致无法通过任务栏图标打开应用,可能出现提示:"该文件没有与之关联的应用来执行操作。建议安装程序,若已安装程序,请在默认程序控制面板中创建关联。"

    2. 常见的解决方案

    操作步骤:

  • 新建 Notepad 文档,将以下代码复制进去。
  • 将文件扩展名改为 .bat,然后点击运行。
  • 此方法会在注册表中补充必要的文件关联来保留快捷方式的箭头。
  • 命令示例:

    taskkill /f /im explorer.exereg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "C:\Windows\system32\imageres.dll,154" /t reg_sz /freg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "C:\Windows\system32\imageres.dll,154" /t reg_sz /freg add "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /t reg_sz /freg add "HKEY_CLASSES_ROOT\piffile" /v IsShortcut /t reg_sz /fstart explorer

    3. 正确删除小箭头的方法

    操作步骤:

  • 新建 Notepad 文档,将以下代码复制进去。
  • 将文件扩展名改为 .bat,然后点击运行。
  • 此方法会通过禁用特定注册表记录来去除快捷方式的箭头。
  • 命令示例:

    taskkill /f /im explorer.exereg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /fattrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"del "%userprofile%\AppData\Local\iconcache.db" /f /qstart explorerpause

    4. 恢复小箭头的方法

    操作步骤:

  • 新建 Notepad 文档,将以下代码复制进去。
  • 将文件扩展名改为 .bat,然后点击运行。
  • 此方法会恢复注册表记录,重新创建快捷方式的箭头。
  • 命令示例:

    taskkill /f /im explorer.exereg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /fattrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"del "%userprofile%\AppData\Local\iconcache.db" /f /qstart explorerpause

    以上操作适用于不同的场景,选择合适的方法根据实际需要进行操作。

    转载地址:http://znbmz.baihongyu.com/

    你可能感兴趣的文章
    nginx 禁止以ip形式访问服务器
    查看>>
    Nginx 结合 consul 实现动态负载均衡
    查看>>
    Nginx 负载均衡与权重配置解析
    查看>>
    Nginx 负载均衡详解
    查看>>
    nginx 配置 单页面应用的解决方案
    查看>>
    nginx 配置https(一)—— 自签名证书
    查看>>
    nginx 配置~~~本身就是一个静态资源的服务器
    查看>>
    Nginx 配置服务器文件上传与下载
    查看>>
    Nginx 配置清单(一篇够用)
    查看>>
    Nginx 配置解析:从基础到高级应用指南
    查看>>
    Nginx 集成Zipkin服务链路追踪
    查看>>
    nginx 集群配置方式 静态文件处理
    查看>>
    nginx+php的搭建
    查看>>
    nginx+tomcat+memcached
    查看>>
    Nginx+Tomcat实现动静分离
    查看>>
    nginx+Tomcat性能监控
    查看>>
    nginx+uwsgi+django
    查看>>
    nginx+vsftp搭建图片服务器
    查看>>
    Nginx-http-flv-module流媒体服务器搭建+模拟推流+flv.js在前端html和Vue中播放HTTP-FLV视频流
    查看>>
    nginx-vts + prometheus 监控nginx
    查看>>