剛在整理資料,突然發(fā)現(xiàn)我Ctrl+R命令然后notepad命令出來的記事本是Notepad2,于是找了一下,原來是以前弄過了使用Notepad2替代系統(tǒng)筆記本,于是就把我現(xiàn)在用的辦法分享出來吧,希望能夠幫助各位脫離微軟萬能不變的垃圾內(nèi)置記事本吧(實在不明白為什么內(nèi)置的就不肯升級= =
首先下面是我notepad2的目錄文件:

Notepad2_x64.exe 是主程序,這里使用的是:Notepad2-mod(64-bit) 4.2.25 r985(7529a6b)這版本,應(yīng)該是別人漢化的一個版本,其主頁地址為:https://xhmikosr./notepad2-mod/,可以到改主頁下載需要的版本。
Notepad2_x64.ini 是程序配套的ini文件,一般就不用直接去改他吧,不過可以考慮設(shè)置好程序后對配置文件做備份吧。
替換系統(tǒng)記事本.bat 如名字所說,就是替換使用的腳本,要替換時運行該腳本即可,注意:1.要與notepad2程序同一目錄;2.使用系統(tǒng)管理員權(quán)限運行。腳本內(nèi)容如下:
@ECHO OFF
PUSHD %~DP0
taskkill /f /im notepad*>NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 請使用右鍵管理員身份運行&&Pause >NUL&&Exit)
Rd "%WinDir%\System32\test_permissions" 2>NUL
SetLocal EnableDelayedExpansion
if not exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad2.exe\" /z" /f
if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad2_x64.exe\" /z" /f
exit
恢復(fù)系統(tǒng)記事本.bat
如名字所說,就是恢復(fù)系統(tǒng)原筆記本的腳本,內(nèi)容如下:
@ECHO OFF
PUSHD %~DP0
taskkill /f /im notepad*>NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 請使用右鍵管理員身份運行&&Pause >NUL&&Exit)
Rd "%WinDir%\System32\test_permissions" 2>NUL
SetLocal EnableDelayedExpansion
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
exit
PS:我是在 WinXP 64位及Win10 64位下使用過的,都成功了,其他系統(tǒng)沒有試過
PS2:腳本非原創(chuàng),應(yīng)該時我以前在其他地方找到了,不過我也找不到出處了
|