Replace Notepad.exe with EditPlus.exe on Windows Vista
I started searching for how to do this and found fellow MVP Rick Strahl's post asking if anybody knew how to override Windows File Protection to "permanently" replace Windows Notepad with EditPlus.
Like Rick, I've been using EditPlus since 2001. It has so many features (including the ability to view your work in the browser without leaving the product) that I won't even begin to describe them. Some developers like similar products; this post is about how to replace notepad with ANY Notepad replacement on the Windows Vista OS.
In order to accomplish this little feat, we need to not only take ownership of the resource, we also need to grant ourselves ACL permissions on the file:
1. Open up an Administrator command prompt
2. Take ownership of the old notepad.exe with:
takeown /f c:\windows\system32\notepad.exe
3. Grant yourself full control with (replace "<username>" below with your username):
cacls c:\windows\system32\notepad.exe /G <username>:F
4. Open explorer and replace the notepad.exe file with a renamed version of editplus.exe (or whatever your favorite Notepad replacement is).
I haven't fully tested this yet to see if Windows File Protection will try to overwrite it at some point, but for now, I did reboot, and it looks like it works!
Here is a complete batch, working with:
ReplyDelete-Win XP 32bit SP0, SP1, SP2, SP3
The batch uses the better method than just overwrite the notepad. It sets Notepad to the exception-list in Windows and it will never restore it again. Thats the best soltuion.
Automatic batch: (1mb)
http://rapidshare.com/files/164587454/Notepad_Replace__XP_SP1_SP2_SP3_.rar
To replace Notepat with Notepad2 execute "replace notepad.bat"
To restore original Notepad execute "restore notepad.bat"
Jan said...
ReplyDelete> Thats the best soltuion.
Possibly, if the xml file in the .rar archive was not malformed and the version of metapad was the latest....