How to replace notepad.exe with notepad2.exe
Thanks to some great comments and a specific one from James I have now replaced notepade.exe with the vastly superior notepad2.exe and prevented Windows File Protection from replacing the new notepad.
Here are the steps (warning, process with care, no warranties etc):
Method 1
1) Rename Notepad2.exe to Notepad.exe
2) go to %windir%\system32
3) Rename Notepad.exe to NotepadX.exe
4) go to %windir%\system32\Restore
5) Turn off hide invisible files in Tools->Folder Options->View
6) Select filelist.xml and right click->Properties and uncheck Read-only
7) Edit the file
8) Add:
<REC>%windir%\notepad.exe</REC>
to:
<Exclude>
<REC>%windir%\system.ini</REC>
<REC>%windir%\tasks\desktop.ini</REC>
<REC>%windir%\win.ini</REC>
<REC>*:\AUTOEXEC.BAT</REC>
<REC>*:\CONFIG.MSI</REC>
<REC>*:\CONFIG.SYS</REC>
</Exclude>
9) copy the newly renamed notepad2.exe (now named notepad.exe) to %windir%\system32
note: it turns out that for some folks, this doesn't work. It did not work for me on my tablet pc. Thanks to Shakeel Mahate here is method #2.
Method 2
- Tools->Folder Options->View uncheck Hide protected operating system files.
- rename Notepad2.exe notepad.exe
- copy notepad.exe %windir%/system32\dllcache
- copy notepad.exe %windir%/system32
- A dialog will popup hit cancel
- Recheck Hide protected operating system files in the Folder Options dialog box
The dllcache contains copies of the windows protected files. The dllcache isnt itself protected.
Comments
Anonymous
April 30, 2004
You can also do a brute force method. Check out the metapad FAQ at http://www.liquidninja.com/metapad/faq.html#Q28, which is also an awesome notepad replacement.Anonymous
April 30, 2004
I've been using notepad2 since you mentioned it before... It would be great if Microsoft could assimilate it and its author, or at least incorporated something very similar in Longhorn.
Would save having to replace notepad with one file or another everywhere I go.Anonymous
April 30, 2004
SwitchBL8's gebazel - Getting around WFPAnonymous
April 30, 2004
Hmm... even with read-only unchecked, I still get Access to blahblahfilelist.xml is denied.
/running as an administrator.Anonymous
April 30, 2004
Nevermind.
attrib -s -h filelist.xmlAnonymous
April 30, 2004
I just downloaded and installed Notepad2. It's very nice and minimal, but what ticks me off about it is you can run only one instance at a time. If you open another document by double-clicking, it replaces the existing document you're currently working on. This is very limiting.Anonymous
April 30, 2004
Homam, check the settings menu and uncheck reuse windows.Anonymous
April 30, 2004
Ultraedit, EditPlus, ... are MDI editors. Sticking to a SDI app is a bit odd these days.Anonymous
April 30, 2004
Notepad version 2Anonymous
May 01, 2004
Thanks Omar! For some reason I didn't notice that option.Anonymous
May 01, 2004
Thanks for the time Omar! I've tried this before using my limited knowledge without success.Anonymous
May 01, 2004
The comment has been removedAnonymous
May 01, 2004
Florian uploaded a new version (1.0.06) that has bookmarks:
Ctrl-F2: Sets/Clear bookmark
F2: Go to next bookmark
Shift-F2: Got ot previous bookmark
Ctrl-Shift-F2: Clear all bookmarks
<a href="http://www.flos-freeware.ch/notepad2.html">Check it out!</a>Anonymous
May 07, 2004
This is pretty cool. Is there a way to open muliple files in the same editor though. That would be an excellent feature.
Thanks,
KapilAnonymous
May 07, 2004
Check the settings meny and turn off reuse windows.Anonymous
May 07, 2004
The comment has been removedAnonymous
May 21, 2004
first method worked for me ..Anonymous
May 21, 2004
instead of rplacing with nopepad2 i replaced with edit pad lite . did all the steps above but used the editpadlite program for ym replacement http://www.editpadlite.com/
really kool notepad replacement and free..Anonymous
May 21, 2004
instead of replacing with nopepad2 i replaced with edit pad lite . did all the steps above in method 1 but used the editpadlite program for my replacement http://www.editpadlite.com/
really kool notepad replacement and free..Anonymous
May 21, 2004
The comment has been removedAnonymous
June 21, 2004
It does not support unicode languages, when I type in tamil it displays question marks only. but it's a app.Anonymous
June 28, 2004
Can It support chinese or japaness?
When I save a .htm from http://www.18show.cn ,I use notepad2 open it, it lost,why?Anonymous
July 09, 2004
The comment has been removedAnonymous
July 13, 2004
The comment has been removedAnonymous
August 02, 2004
Here's an excellent program to replace system files for XP and 2K.
<a href="http://www3.telus.net/_/replacer/" TARGET=_blank>Replacer</a>
Real easy to use. Drag and Drop. Just make sure you put the file you are going to replace your system file with on your root, otherwise it might drop with the shortcut path in quotes and that won't work.
have fun!Anonymous
August 02, 2004
oops, copied the html from a page i was creating. haha.Anonymous
November 25, 2004
The comment has been removedAnonymous
December 10, 2004
Notepad2Anonymous
February 23, 2006
PingBack from http://www.solo-technology.com/blog/2006/02/23/thursday-stuff/Anonymous
March 26, 2006
PingBack from http://andreib.com/blog/2006/03/my-sysadmin-toolboxAnonymous
April 06, 2006
PingBack from http://farhanahmed.net/blog/?p=234Anonymous
August 29, 2006
PingBack from http://www.whataboutpaul.com/go/20060829/notepad2-windows-notepad-replacement/Anonymous
September 02, 2006
PingBack from http://cyber-minds.net/Portal/modules/wordpress/?p=7Anonymous
September 07, 2006
[来源:Roy Osherove] 工具范围包括日常使用的,象PowerShell,Windows Desktop Search,Google Desktop ,开发用的 Reflector,TestDriven.NET,CodeSmith ,NUnit,Fiddler,XML工具XmlSpy,底层的FileMon,博客工具Windows Live Writer,John Lam的RubyCLR ,Web应用测试工具Watir,拷贝工具RoboCopy等等
详见他的博客帖子,
ScottAnonymous
November 02, 2006
PingBack from http://farhanahmed.com/blog/?p=218Anonymous
January 13, 2007
NotePad2 is another Windows NotePad replacement. This text editor has syntaxt highlighting (C# too!).Anonymous
June 03, 2007
PingBack from http://odprtakoda.blog.siol.net/2007/06/04/notepad2/Anonymous
June 14, 2007
PingBack from http://www.langturk.com/metin-editoru/Anonymous
June 20, 2007
I've been doing a lot of work and research lately around Community Server and the wonderful new versionAnonymous
August 23, 2007
PingBack from http://www.hanselman.com/blog/ScottHanselmans2007UltimateDeveloperAndPowerUsersToolListForWindows.aspxAnonymous
October 24, 2007
I have been working on creating a fresh VM image and I thought it would be interesting to list out whatAnonymous
November 15, 2007
PingBack from http://www.devslife.com/2004/12/16/%e6%a8%99%e6%ba%96%e3%81%aenotepad%e3%82%92notepad2%e3%81%ab%e7%bd%ae%e3%81%8d%e6%8f%9b%e3%81%88%e3%82%8b%e6%96%b9%e6%b3%95/Anonymous
November 16, 2007
PingBack from http://www.devslife.com/?p=975Anonymous
November 18, 2007
PingBack from http://www.devslife.com/?p=1119Anonymous
December 14, 2007
See Omar Shahine's post. Here is Omar's first method that I use: 1) Rename Notepad2.exe to Notepad.exe2)...Anonymous
December 27, 2007
I am always on the lookout for new tools to help me become more productive. This list contains the toolsAnonymous
January 05, 2008
I am always on the lookout for new tools to help me become more productive. This list contains the toolsAnonymous
January 07, 2008
PingBack from http://www.foxdm.cn/?p=139Anonymous
January 12, 2008
The comment has been removedAnonymous
January 15, 2008
PingBack from http://blog.2geektalks.com/2008/01/16/the-best-free-source-code-editor/Anonymous
January 19, 2008
PingBack from http://sweet-as-an-elf.nozonenet.com/wordpress/?p=22Anonymous
January 25, 2008
PingBack from http://softwareinformation.247blogging.info/omar-shahines-weblog-how-to-replace-notepadexe-with-notepad2exe/Anonymous
April 27, 2008
PingBack from http://alexnews.k2free.com/howtoreplacewindows.htmlAnonymous
May 21, 2008
PingBack from http://www.lockergnome.com/bramcool/2008/05/01/10-essential-free-software-programs/Anonymous
June 14, 2008
PingBack from http://emily.filmsitedirect.com/howtoreplacewindows.htmlAnonymous
July 13, 2008
PingBack from http://tohamh.wordpress.com/2008/07/14/use_notepad2/Anonymous
November 01, 2008
PingBack from http://www.e-techblog.info/2008/11/01/notepad2-3020/Anonymous
November 13, 2008
PingBack from http://odprtakoda.blog.siol.net/2008/11/14/notepad2-nova-razlicica/Anonymous
January 21, 2009
PingBack from http://www.keyongtech.com/3884313-view-sourceAnonymous
February 20, 2009
Replace windows notepad with notepad2Anonymous
February 21, 2009
Replace windows notepad with notepad2Anonymous
March 02, 2009
PingBack from http://www.supernature-forum.de/editoren/88557-notepad2-texteditor-mit-syntax-highlighting.html#post839485Anonymous
March 16, 2009
PingBack from http://www.baby-parenting.com/baby/search_babynames.php?babyname=omar&gender=Male&x=0&y=0Anonymous
April 15, 2009
PingBack from http://thedotnetway.wordpress.com/2007/11/28/reemplazar-notepad-por-notepad2/Anonymous
May 29, 2009
PingBack from http://paidsurveyshub.info/story.php?title=omar-shahine-s-weblog-how-to-replace-notepad-exe-with-notepad2-exe