Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 無法執行 .exe 執行檔?登錄檔修復 exe 檔案關聯恢復預設開啟方式

編輯:Windows 7 系統介紹

雙擊 .exe 檔案卻彈出「開啟方式」選單、或以記事本開啟,檔案關聯遭破壞 (常因病毒、優化軟體誤改)。匯入登錄檔修復 HKEY_CLASSES_ROOT\.exe 關聯即可恢復正常執行。

修復步驟

  1. Win+R → notepad 開啟記事本。
  2. 貼入以下內容:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.exe]
@="exefile"
"Content Type"="application/x-msdownload"

[HKEY_CLASSES_ROOT\.exe\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
  1. 另存為 fix_exe.reg (編碼 ANSI) → 雙擊匯入 → 是 → 確定。
  2. 重新開機或登出登入,.exe 檔案恢復正常執行。

記事本建立reg 另存為fix_exe.reg 匯入登錄檔確認

補充修復

若 exefile 子機碼也受損,可同樣匯入完整 exefile 定義 (含 shell\open\command 等),或從同版本正常電腦匯出對應分支導入。

預防

  • 安裝可靠防毒軟體並保持更新。
  • 不隨意使用不明來源的「優化大師」、「註冊表清理」工具。
Copyright © Windows教程網 All Rights Reserved