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

Win7 修復 .exe 執行檔關聯錯誤:註冊表修改法

編輯:Windows 7 系統介紹

Win7 系統中若 .exe 執行檔無法正常開啟(如雙擊無反應、以錯誤程式開啟),通常是檔案關聯在註冊表中損壞。透過修正 HKEY_CLASSES_ROOT\exefile\shell\open\command 鍵值即可快速修復。

開啟註冊表編輯器
修改 exe 檔關聯鍵值

操作步驟

  1. 按 Win+R 開啟「執行」,輸入 regedit 並按 Enter 開啟註冊表編輯器。
  2. 依路徑展開:
    HKEY_CLASSES_ROOT → exefile → shell → open → command
  3. 在右側視窗找到「預設」數值,雙擊修改。
  4. 將數值資料改為:"%1" %*(含雙引號與空格)。
  5. 確定儲存,關閉註冊表編輯器,重新開機生效。
重要:修改註冊表前建議匯出備份對應分支。若無法開啟 regedit,可嘗試以管理員身分執行、或使用 .reg 檔案導入修復。

快速修復替代方案

將以下內容儲存為 fix_exe.reg,雙擊匯入並重開機:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@="\"%1\" %*"
Copyright © Windows教程網 All Rights Reserved