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

Win10 TXT 文本文檔無法打開?文件關聯修復三步走

編輯:Windows 10 系統介紹

Windows 10 雙擊 .txt 文本文檔無反應、彈出「選擇應用」對話框、或用錯誤程序打開 (如 Word、瀏覽器)。此為文件關聯損壞:.txt 關聯的「記事本」路徑丟失/錯誤。通過「打開方式」重新指定正確的 notepad.exe 即可徹底修復。

圖文修復步驟

  1. 右鍵文本文檔 → 「打開方式」→ 「選擇其他應用」。

    打開方式選擇其他應用

  2. 點擊「更多應用」→ 下拉到底部 → 勾選「始終使用此應用打開 .txt 文件」→ 點擊「在這台電腦上查找其他應用」。

    勾選始終使用並查找應用

  3. 根據系統位數選擇 notepad.exe 路徑:
    • 64 位系統: C:\Windows\SysWOW64\notepad.exe (32 位記事本,兼容性最佳)
    • 32 位系統: C:\Windows\System32\notepad.exe

    選中 notepad.exe → 「打開」→ 完成。

選擇 notepad.exe 路徑

原理解析

  • Win10 64 位系統包含兩個記事本:System32\notepad.exe (64 位) 和 SysWOW64\notepad.exe (32 位)。
  • 文件關聯機制優先匹配 32 位程序 (兼容舊版擴展/插件),指定 SysWOW64\notepad.exe 可避免「打開方式」列表顯示異常、編碼檢測錯誤等問題。
  • 勾選「始終使用此應用」將關聯寫入 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\UserChoice,永久生效。

批量修復註冊表文件 (適合多機部署/重置後自動化)

保存為 Fix-TXT-Association.reg,雙擊導入:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\UserChoice]
"ProgId"="txtfile"
"Hash"="..."  ; 系統自動計算,導入後自動修正

[HKEY_CLASSES_ROOT\txtfile\shell\open\command]
@="\"%SystemRoot%\\SysWOW64\\notepad.exe\" %1"
; 64位系統用 SysWOW64,32位系統改為 System32

進階排查:若修復後仍異常

  • 檢查 HKEY_CLASSES_ROOT\.txt 默認值是否為 txtfile。
  • 運行 sfc /scannow 修復系統文件 (含 notepad.exe)。
  • 排查第三方「文件關聯修復工具」是否衝突,暫時卸載。
Copyright © Windows教程網 All Rights Reserved