This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\Notepad2] | |
[HKEY_CLASSES_ROOT\*\shell\Notepad2\command] | |
@="notepad.exe %1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\*\shell\Notepad2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Notepad2-mod (替換/恢復系統記事本) | |
echo. | |
SET /P ST=輸入y替換系統記事本,輸入n恢復系統記事本: | |
if /I "%ST%"=="y" goto Replace | |
if /I "%ST%"=="n" goto Restoration | |
:Replace | |
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad2.exe\" /z" /f | |
exit | |
:Restoration | |
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f | |
exit |
Add "Open with Notepad" to the Context Menu for All Files 替換∕恢復系統記事本.bat & 添加∕刪除右鍵菜單.bat