Win7雙擊.exe程序無反應、彈出「打開方式」對話框、或以記事本/其他程序打開,經典癥狀為「可執行文件關聯損壞」。常見原因:病毒修改註冊表、誤操作「打開方式」、優化工具誤清理、第三方殼破壞關聯。本文提供標準註冊表修復腳本,雙擊導入即刻恢復。
cmd/notepad直接輸入程序名可運行(證明文件完好,僅關聯斷裂)註冊表 HKEY_CLASSES_ROOT\.exe、HKEY_CLASSES_ROOT\exefile\shell\open\command 鍵值被篡改/刪除。正常默認值應為:"%1" %*
fix_exe_assoc.reg (後綴 .reg)Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.exe]
@="exefile"
"Content Type"="application/x-msdownload"
[HKEY_CLASSES_ROOT\exefile]
@="Application"
"EditFlags"=hex:38,07,01,00
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,30,00,31,00,35,00,36,00,00,00
[HKEY_CLASSES_ROOT\exefile\DefaultIcon]
@="%1"
[HKEY_CLASSES_ROOT\exefile\shell]
[HKEY_CLASSES_ROOT\exefile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"
[HKEY_CLASSES_ROOT\exefile\shell\runas]
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"
[HKEY_CLASSES_ROOT\exefile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"

cmd → 回車 (命令提示符通常不受.exe關聯影響)reg import "C:\Users\你的用戶名\Desktop\fix_exe_assoc.reg"fix.bat → 在每行reg add前綴 → 運行.bat常伴隨.exe關聯損壞,一並修復:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"
[HKEY_CLASSES_ROOT\lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"IsShortcut"=""
"NeverShowExt"=""
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\OpenContainingFolder]
@="{37ea3a21-7493-4208-a011-7f9ea79ce9f5}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]
@=""
[HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]
@="{00021401-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]
@="{00021401-0000-0000-C000-000000000046}"
msconfig / taskmgr → 禁用可疑啟動項HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run / RunOnce 異常項.exe打不開 = 註冊表 exefile\shell\open\command 掛了。保存上方完整.reg(含DefaultIcon/runas/DropHandler)雙擊導入 → 3秒復活。但務必跟上殺毒,否則重啟後大概率再被改。.exe關聯是系統命脈,守住它!