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

Windows 10 右鍵選單新增「記事本」與「用記事本開啟」:登錄表修改教學

編輯:Windows 10 系統介紹

Windows 10 預設右鍵選單無「記事本」快速啟動項目。透過登錄表新增鍵值,可在桌面/資料夾空白處右鍵直接啟動記事本,或在任意檔案右鍵選單加入「用記事本開啟」,大幅提升文字編輯效率。

方案一:桌面/資料夾背景右鍵新增「記事本」啟動項

  1. Win+R → regedit
  2. 瀏覽至:HKEY_CLASSES_ROOT\Directory\Background\shell
  3. 在 shell 上右鍵 → 新增 → 「機碼」 → 命名 記事本。
  4. 在 記事本 下再新增機碼 command。
  5. 雙擊 command 下的「(預設)」字串值,數值資料設為:
C:\Windows\System32\notepad.exe
  1. 確定,右鍵桌面空白處即見「記事本」選單項。

方案二:所有檔案右鍵新增「用記事本開啟」

  1. 瀏覽至:HKEY_CLASSES_ROOT\*\shell (若無 shell 鍵則新增)。
  2. 在 shell 下新增機碼 notepad。
  3. 修改 notepad 的「(預設)」值為:用記事本開啟。
  4. 在 notepad 下新增機碼 command。
  5. 修改 command 的「(預設)」值為:
notepad.exe %1

注意:notepad.exe 與 %1 之間有一空格。

快速部署:.reg 檔案匯入法

將以下內容存為 Add_Notepad_Context_Menu.reg,雙擊匯入即可完成上述兩項設定:

Windows Registry Editor Version 5.00

; 桌面背景右鍵 - 記事本
[HKEY_CLASSES_ROOT\Directory\Background\shell\Notepad]
@="記事本"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Notepad\command]
@="C:\\Windows\\System32\\notepad.exe"

; 所有檔案右鍵 - 用記事本開啟
[HKEY_CLASSES_ROOT\*\shell\notepad]
@="用記事本開啟"
[HKEY_CLASSES_ROOT\*\shell\notepad\command]
@="notepad.exe %1"

移除設定

登錄表中刪除對應機碼即可:

  • 桌面背景:刪除 HKEY_CLASSES_ROOT\Directory\Background\shell\Notepad
  • 檔案右鍵:刪除 HKEY_CLASSES_ROOT\*\shell\notepad

補充:Windows 10 開啟記事本其他 4 種方法

  1. Win+R → notepad → Enter
  2. 開始選單 → Windows 配件 → 記事本
  3. 搜尋列輸入「記事本」→ Enter
  4. 命令列/PowerShell 輸入 notepad
Copyright © Windows教程網 All Rights Reserved