博客
关于我
删除桌面图标的小箭头
阅读量: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 + etcd 动态负载均衡实践(一)—— 组件介绍
    查看>>
    nginx + etcd 动态负载均衡实践(三)—— 基于nginx-upsync-module实现
    查看>>
    nginx + etcd 动态负载均衡实践(二)—— 组件安装
    查看>>
    nginx + etcd 动态负载均衡实践(四)—— 基于confd实现
    查看>>
    Nginx + Spring Boot 实现负载均衡
    查看>>
    Nginx + Tomcat + SpringBoot 部署项目
    查看>>
    Nginx + uWSGI + Flask + Vhost
    查看>>
    Nginx - Header详解
    查看>>
    Nginx - 反向代理、负载均衡、动静分离、底层原理(案例实战分析)
    查看>>
    Nginx - 反向代理与负载均衡
    查看>>
    nginx 1.24.0 安装nginx最新稳定版
    查看>>
    nginx 301 永久重定向
    查看>>
    nginx connect 模块安装以及配置
    查看>>
    nginx css,js合并插件,淘宝nginx合并js,css插件
    查看>>
    Nginx gateway集群和动态网关
    查看>>
    Nginx Location配置总结
    查看>>
    Nginx log文件写入失败?log文件权限设置问题
    查看>>
    Nginx Lua install
    查看>>
    nginx net::ERR_ABORTED 403 (Forbidden)
    查看>>
    Nginx SSL 性能调优
    查看>>