Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Windows 7 右鍵選單找不到「新增文字文件」?匯入登錄檔一鍵恢復

編輯:關於 Windows

Windows 7 預設右鍵「新增」選單中沒有「文字文件」,許多習慣用記事本的用戶感到不便。只要匯入一段登錄檔,即可將「文字文件」加回右鍵選單。

操作步驟

  1. 開啟記事本,貼上以下內容:
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. 另存為 notepad.reg(編碼選 ANSI 或 UTF-8)。
  2. 雙擊執行 → 「是」匯入登錄表。
  3. 右鍵桌面或資料夾 → 「新增」即可看到「文字文件」。

原理:重建 .txt 副檔名關聯與 ShellNew 空檔案範本,讓殼層識別為可建立的新檔案類型。

Copyright © Windows教程網 All Rights Reserved