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

硬碟雙擊無法開啟、提示找不到 .exe?Autor.inf 病毒殘留與檔案關聯修復全攻略

編輯:XP 常見問題解答

殺毒後硬碟分區雙擊無法開啟、提示「Windows 找不到 xxx.exe」,右鍵「開啟」卻正常?經典 Autorun.inf 病毒殘留導致檔案關聯被劫持,附完整修復方案。

核心成因

  • 病毒在各分區根目錄建立 Autorun.inf + 惡意 .exe
  • Autorun.inf 內容:[AutoRun] open=malware.exe
  • 雙擊分區圖示 → 系統讀取 Autorun.inf → 執行指定程式 → 病毒啟動
  • 殺毒軟體刪除惡意 .exe 但遺留 Autorun.inf → 雙擊觸發「找不到檔案」錯誤
  • 註冊表 HKEY_CLASSES_ROOT\Drive\shell\open\command 被竄改指向病毒路徑

分級修復方案 (依成功率排序)

方案一:顯示隱藏檔 + 刪除 Autorun.inf (最基礎、必做)

  1. 我的電腦 → 工具 → 資料夾選項 → 檢視
  2. 選「顯示所有檔案和資料夾」→ 取消「隱藏受保護的作業系統檔案」
  3. 右鍵分區 → 開啟 → 刪除根目錄 Autorun.inf
  4. 命令列批次刪除 (遞迴所有分區):
    for %d in (C D E F G H) do @if exist %d:\Autorun.inf attrib -s -h -r %d:\Autorun.inf & del %d:\Autorun.inf

方案二:資料夾選項「檔案類型」修復磁碟機關聯

  1. 工具 → 資料夾選項 → 檔案類型
  2. 找 磁碟機 → 進階 → 新增
  3. 動作:open → 應用程式:explorer.exe %1
  4. 確定 → 選 open → 設為預設
  5. 副作用:雙擊開啟新視窗,可由登錄修正

方案三:登錄編輯器刪除殘留 Shell 鍵值 (徹底)

  1. regedit → 刪除:
    HKEY_CLASSES_ROOT\Drive\shell (整個機碼)
  2. 檢查使用者層級掛載點:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\
    展開每個 GUID 子機碼 → 刪除底下 shell 分支

方案四:命令列完整清理 (單一分區範例 D:)

D:
dir /a
attrib -s -h -r autorun.inf
del autorun.inf
regedit
:: 搜尋 DESKTOP.exe 或惡意程式名稱
:: 找到第一個即為該分區自動執行鍵值
:: 刪除整個 shell 子機碼
:: 重複處理其他分區

方案五:註冊表修正 SHMEDIA.DLL (針對媒體預覽殘留)

regsvr32 /u shmedia.dll    停用媒體預覽 (可能影響縮圖)
regsvr32 shmedia.dll       恢復

預防與習慣

  • 關閉所有分區 AutoRun:gpedit.msc → 電腦設定 → 系統管理範本 → 系統 → 關閉自動播放 → 啟用 → 選「所有磁碟機」
  • 或登錄:HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun = 0xFF (255)
  • 使用 Panda USB Vaccine / Ninja Pendisk 等工具為 USB 寫入保護性 Autorun.inf
  • 殺毒後必須手動檢查並刪除各分區 Autorun.inf,不要只信掃毒報告

雙擊無法開啟分區 = Autorun.inf 殘留 + 關聯被劫持。依序執行方案一→三→四,99% 情況可徹底修復。

Copyright © Windows教程網 All Rights Reserved