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

Win7 滑鼠右鍵「新增」遺失記事本?匯入登錄表一鍵恢復

編輯:Windows 7 系統介紹

原因

第三方軟體/優化工具誤刪 HKEY_CLASSES_ROOT\.txt 相關鍵值,導致右鍵新增選單無「文字文件」。

修復:匯入註冊表檔

  1. 記事本貼入以下內容,存為 textfix.reg (編碼 ANSI/UTF-8):
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.txt]
@="txtfile"
"Content Type"="text/plain"

[HKEY_CLASSES_ROOT\.txt\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\txtfile]
@="文字文件"

[HKEY_CLASSES_ROOT\txtfile\shell]

[HKEY_CLASSES_ROOT\txtfile\shell\open]

[HKEY_CLASSES_ROOT\txtfile\shell\open\command]
@="NOTEPAD.EXE %1"
  1. 雙擊 textfix.reg → 「是」匯入登錄表。
  2. 3. 重新整理桌面/總管,右鍵「新增」→「文字文件」恢復正常。

原理

恢復 .txt 副檔名關聯至 txtfile、ShellNew 空檔建立機制、預設開啟程式為 Notepad。同邏輯可修復其他遺失的「新增」項目 (如 .bat/.vbs/.html)。

Copyright © Windows教程網 All Rights Reserved