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

Win7 桌面捷徑全變 Windows Media Player 圖示?註冊表修復 .lnk 檔案關聯

編輯:Win7 系統應用技巧

桌面所有捷徑圖示突然變成 Windows Media Player 圖示,雙擊皆開啟播放器,經典的 .lnk 檔案關聯損毀。透過登錄編輯器修復 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk 分支即可恢復。

修復步驟

  1. Win + R → regedit。
  2. 展開至:
    HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\EXPLORER\FILEEXTS\.LNK
  3. 展開 .lnk,僅保留兩個子鍵:
    OpenWithList、OpenWithProgids
    其餘子鍵全數刪除。
  4. 點選 OpenWithList,右側僅保留 (預設) 值,其餘刪除。
  5. 點選 OpenWithProgids,右側僅保留 (預設) 與 lnkfile,其餘刪除。
  6. 重新登入或重啟 explorer.exe 生效。

一鍵修復 .reg 替代方案

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\OpenWithList]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\OpenWithProgids]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\OpenWithList]
@=""

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\OpenWithProgids]
"lnkfile"=hex(0):

另存為 FixLnkAssociation.reg 雙擊匯入即可。

預防與延伸

  • 安裝第三方播放器/瀏覽器時,勿盲目勾選「設為預設開啟 .lnk」等非標準關聯。
  • 定期備份 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts 分支。
  • 同理可修復 .exe、.bat、.url 等關聯損毀,對應鍵路徑略有不同。
Copyright © Windows教程網 All Rights Reserved