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

Win8 右鍵「管理」報錯「該檔案沒有關聯程式」?匯入 .reg 修復 .exe 檔案關聯

編輯:Windows 8 系統介紹

Windows 8 右鍵「這台電腦」→「管理」彈出「該檔案沒有與之關聯的程式來執行該作業」,主因是 .exe 檔案關聯登錄損毀。建立 .reg 檔案匯入修復 HKEY_CLASSES_ROOT\.exe 與 HKEY_CLASSES_ROOT\exefile 鍵值,即可恢復正常。

修復步驟

  1. 開啟「記事本」,貼入以下內容:
Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\exefile\PersistentHandler]
@="{0910f247-bae0-11cd-b579-08002b30bfeb}"
  1. 另存為 修復exe關聯.reg (副檔名必為 .reg)。
  2. 雙擊該檔案 → 確認「是」匯入登錄。系統提示「機碼和值已成功新增」。
  3. 測試右鍵「管理」、雙擊 .exe 程式,應恢復正常。

原理說明

.reg 檔案直接修復 HKEY_CLASSES_ROOT\.exe (預設值 exefile) 與 PersistentHandler (處理常式 GUID),避免在龐大登錄中手動尋找。同原理可修復 .lnk、.bat、.cmd 等關聯損毀,只需替換對應 GUID 與 ProgID。

進階修復工具

若大量副檔名關聯損毀,建議使用 FileTypesMan (NirSoft) 圖形化介面批次檢視/修復,或 Registry Backup/Restore 還原備份。

Copyright © Windows教程網 All Rights Reserved