zoukankan      html  css  js  c++  java
  • 该文件没有与之关联的程序来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置

    问题:Win10系统,点击此电脑右键管理和文件资源管理器出现了:该文件没有与之关联的程序来执行该操作。请安装应用,若已经安装应用,请在“默认应用设置“页面中创建关联。

    原因:删除快捷方式小箭头导致的

    参考链接:该文件没有与之关联的程序来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置"

    亲测有效!!!

    方法:保存为.bat格式管理员运行。

    taskkill /f /im explorer.exe
    reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "C:Windowssystem32imageres.dll,154" /t reg_sz /f
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "C:Windowssystem32imageres.dll,154" /t reg_sz /f
    reg add "HKEY_CLASSES_ROOTlnkfile" /v IsShortcut /t reg_sz /f
    reg add "HEKY_CLASSES_ROOTpiffile" /v IsShortcut /t reg_sz /f
    start explorer
    

    注意:如果还需要除去小箭头用下面的命令用这个方法就可以避免错误了,新建一个文本文件,粘贴后另存为.bat文件,然后以管理员身份打开

    reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "%systemroot%system32imageres.dll,197" /t reg_sz /f
    taskkill /f /im explorer.exe
    attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
    del "%userprofile%AppDataLocaliconcache.db" /f /q
    start explorer
    pause
    
  • 相关阅读:
    HashMap put get 源码解析
    HashMap 源码
    配置spring boot请求的入参和出参json数据格式
    配置idea的注释模板
    基本数据类型
    Linux命令系列之
    Linux命令系列之
    Linux命令系列之
    Linux命令系列之
    Linux命令系列之
  • 原文地址:https://www.cnblogs.com/qqkkOvO/p/14689135.html
Copyright © 2011-2022 走看看