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

Windows XP 修復 .exe 檔案關聯:安全模式一行指令搞定

編輯:XP 系統基礎知識

症狀

.exe 檔案關聯錯誤(常由病毒導致),導致所有執行檔無法開啟,連殺毒軟體也無法執行。

解決步驟

  1. 重開機進入 安全模式(開機連按 F8 選擇)。
  2. 開啟「命令提示字元」(開始→執行→cmd)。
  3. 輸入以下指令並按 Enter:
    assoc .exe=exefile
  4. 螢幕顯示 .exe=exefile 即成功。
  5. 按 Ctrl+Alt+Del 開啟「Windows 安全性」→「關機」→「重新啟動」。
  6. 正常模式進入系統,.exe 檔案關聯已恢復。

原理

assoc 為檔案關聯管理指令,將 .exe 重新指向 exefile 類別,修復登錄 HKEY_CLASSES_ROOT\.exe 與 HKEY_CLASSES_ROOT\exefile 的對應關係。安全模式下登錄未被惡意程式鎖定,指令才能生效。

一行指令、零工具、秒修復,備忘必收。

Copyright © Windows教程網 All Rights Reserved