博客
关于我
删除桌面图标的小箭头
阅读量: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/

    你可能感兴趣的文章
    Tensorflow.python.framework.errors_impl.ResourceExhaustedError:无法分配内存[操作:AddV2]
    查看>>
    TCP基本入门-简单认识一下什么是TCP
    查看>>
    tableviewcell 中使用autolayout自适应高度
    查看>>
    Symbolic Aggregate approXimation(SAX,符号聚合近似)介绍-ChatGPT4o作答
    查看>>
    Orcale表被锁
    查看>>
    svn访问报错500
    查看>>
    sum(a.YYSR) over (partition by a.hy_dm) 不需要像group by那样需要分组函数。方便。
    查看>>
    ORCHARD 是什么?
    查看>>
    Struts2中使用Session的两种方法
    查看>>
    Stream API:filter、map和flatMap 的用法
    查看>>
    STM32工作笔记0032---编写跑马灯实验---寄存器版本
    查看>>
    Static--用法介绍
    查看>>
    ssm旅游信息管理系统的设计与实现bus56(程序+开题)
    查看>>
    order by rand()
    查看>>
    SSM(Spring+SpringMvc+Mybatis)整合开发笔记
    查看>>
    ViewHolder的改进写法
    查看>>
    Orderer节点启动报错解决方案:Not bootstrapping because of 3 existing channels
    查看>>
    org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement profile
    查看>>
    sql查询中 查询字段数据类型 int 与 String 出现问题
    查看>>
    org.apache.commons.beanutils.BasicDynaBean cannot be cast to ...
    查看>>