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

Notepad2_x64.exe 是主程序,這里使用的是:Notepad2-mod(64-bit) 4.2.25 r985(7529a6b)這版本,應(yīng)該是別人漢化的一個(gè)版本,其主頁(yè)地址為:https://xhmikosr./notepad2-mod/,可以到改主頁(yè)下載需要的版本。
Notepad2_x64.ini 是程序配套的ini文件,一般就不用直接去改他吧,不過(guò)可以考慮設(shè)置好程序后對(duì)配置文件做備份吧。
替換系統(tǒng)記事本.bat 如名字所說(shuō),就是替換使用的腳本,要替換時(shí)運(yùn)行該腳本即可,注意:1.要與notepad2程序同一目錄;2.使用系統(tǒng)管理員權(quán)限運(yùn)行。腳本內(nèi)容如下:
@ECHO OFF
PUSHD %~DP0
taskkill /f /im notepad*>NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 請(qǐng)使用右鍵管理員身份運(yùn)行&&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
如名字所說(shuō),就是恢復(fù)系統(tǒng)原筆記本的腳本,內(nèi)容如下:
@ECHO OFF
PUSHD %~DP0
taskkill /f /im notepad*>NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 請(qǐng)使用右鍵管理員身份運(yùn)行&&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位下使用過(guò)的,都成功了,其他系統(tǒng)沒(méi)有試過(guò)
PS2:腳本非原創(chuàng),應(yīng)該時(shí)我以前在其他地方找到了,不過(guò)我也找不到出處了
|