Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win8 计算机管理打不开提示“无关联程序”?注册表修复 .exe 文件关联

編輯:關於 Windows

Win8.1 打开“计算机管理”提示“该文件没有与之关联的程序来执行该操作”,实为 .exe 文件关联损坏。导入注册表修复 HKEY_CLASSES_ROOT\.exe 与 exefile 键值即可恢复。

修复注册表代码

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.exe]
@="exefile"
"Content Type"="application/x-msdownload"
[HKEY_CLASSES_ROOT\.exe\PersistentHandler]
@="{0910f2470-bae0-11cd-b579-010002b30bfeb}"
[HKEY_CLASSES_ROOT\exefile]
@="Application"
[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@="\"%1\" %*"

操作步骤

  1. 新建文本文档,粘贴上述代码;
  2. 保存为 FixExeAssociation.reg(显示扩展名,改 .txt 为 .reg);
  3. 双击导入,确认提示点“是”;
  4. 重启或注销重新登录,.exe 关联恢复正常。

记事本粘贴注册表

重命名为.reg

扩展:批量修复常见关联

同理可修复 .lnk (lnkfile)、.bat (batfile)、.cmd (cmdfile) 等关联损坏,只需替换对应 ProgID 与命令模板。

Copyright © Windows教程網 All Rights Reserved