Welcome to MSDN Blogs Sign in | Join | Help

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

  1. Tools->Folder Options->View uncheck Hide protected operating system files. 
  2. rename Notepad2.exe notepad.exe 
  3. copy notepad.exe %windir%/system32\dllcache 
  4. copy notepad.exe %windir%/system32 
  5. A dialog will popup hit cancel 
  6. 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.

Published Friday, April 30, 2004 7:43 PM by omars
Filed under:

Comments

# re: How to replace notepad.exe with notepad2.exe

Friday, April 30, 2004 2:07 PM by Sean
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.

# re: How to replace notepad.exe with notepad2.exe

Friday, April 30, 2004 2:17 PM by Simon
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.

# SwitchBL8's gebazel - Getting around WFP

Friday, April 30, 2004 5:56 PM by TrackBack
SwitchBL8's gebazel - Getting around WFP

# Building a Better Notepad with Notepad2.exe

Friday, April 30, 2004 7:09 PM by Powertoys WebLog

# Building a Better Notepad with Notepad2.exe

Friday, April 30, 2004 7:10 PM by Powertoys WebLog

# re: How to replace notepad.exe with notepad2.exe

Friday, April 30, 2004 6:08 PM by Sean Terry
Hmm... even with read-only unchecked, I still get Access to blah\blah\filelist.xml is denied.
/running as an administrator.

# re: How to replace notepad.exe with notepad2.exe

Friday, April 30, 2004 6:09 PM by Sean Terry
Nevermind.
attrib -s -h filelist.xml

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 01, 2004 12:49 AM by Homam Alsayed
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.

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 01, 2004 12:55 AM by Omar Shahine
Homam, check the settings menu and uncheck reuse windows.

# Notepad version 2

Saturday, May 01, 2004 7:55 AM by Stefano Demiliani WeBlog
Notepad version 2

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 01, 2004 7:36 AM by Stephane Rodriguez

Ultraedit, EditPlus, ... are MDI editors. Sticking to a SDI app is a bit odd these days.

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 01, 2004 8:47 AM by Homam Alsayed
Thanks Omar! For some reason I didn't notice that option.

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 01, 2004 9:56 AM by Shawn
Thanks for the time Omar! I've tried this before using my limited knowledge without success.

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 01, 2004 8:15 PM by Shakeel Mahate
Your instructions do not apply to Windows Server 2003. If anybody is interested in replacing notepad.exe with Notepad2.exe for Windows Server 2003, here are the instructions:

1. Tools->Folder Options->View uncheck Hide protected operating system files.
2. ren Notepad2.exe notepad.exe
3. copy notepad.exe %windir%/system32\dllcache
4. copy notepad.exe %windir%/system32
5. A dialog will popup hit cancel
6. 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.

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 01, 2004 10:49 PM by Homam Alsayed
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>

# Notepad Replacement

Sunday, May 02, 2004 5:13 AM by William.Blog()

# Fantastick

Tuesday, May 04, 2004 10:39 AM by ISlavoF.Save()

# NotePad2

Wednesday, May 05, 2004 1:24 PM by ExplosiveDog.Com

# re: How to replace notepad.exe with notepad2.exe

Friday, May 07, 2004 3:17 PM by Kapil
This is pretty cool. Is there a way to open muliple files in the same editor though. That would be an excellent feature.

Thanks,
Kapil

# re: How to replace notepad.exe with notepad2.exe

Friday, May 07, 2004 8:06 PM by Omar Shahine
Check the settings meny and turn off reuse windows.

# re: How to replace notepad.exe with notepad2.exe

Saturday, May 08, 2004 5:07 AM by Sam Collett
Here is a batch script that allows you to replace notepad with any notepad replacement: http://webdevel.blogspot.com/2004_04_01_webdevel_archive.html#108246184802912349
The advantage is it will work with any file that you drag onto it, and you do not need to unhide system files. Because of that, a backup is made and can be restored by running the batch file again.
However, it does not edit filelist.xml and so the Windows Protection box appears. I guess the only way to edit the filelist.xml as well is to write a VBS file - a check would need to be done for Windows versions though.

# Notepad2, Disable Reusing the same window

Friday, May 14, 2004 5:09 PM by Wes' Puzzling Blog

# Notepad2, Disable Reusing the same window

Friday, May 14, 2004 5:10 PM by Wes' Puzzling Blog

# re: How to replace notepad.exe with notepad2.exe

Friday, May 21, 2004 10:45 PM by Nikkie
first method worked for me ..

# re: How to replace notepad.exe with notepad2.exe

Friday, May 21, 2004 10:53 PM by Nikkie
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..

# re: How to replace notepad.exe with notepad2.exe

Friday, May 21, 2004 10:54 PM by Nikkie
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..

# re: How to replace notepad.exe with notepad2.exe

Friday, May 21, 2004 10:58 PM by Nikkie
damn , they lied . it isnt free. for that i go to astalavista :D

# No Unicode Support

Monday, June 21, 2004 10:59 PM by Suren Rajasooriyar
It does not support unicode languages, when I type in tamil it displays question marks only. but it's a app.

# re: How to replace notepad.exe with notepad2.exe

Monday, June 28, 2004 6:15 PM by 仪表
Can It support chinese or japaness?
When I save a .htm from http://www.18show.cn ,I use notepad2 open it, it lost,why?

# re: How to replace notepad.exe with notepad2.exe

Saturday, July 10, 2004 3:51 AM by Chris
Great replacement for the bog standard notepad we've all been using for years. Has it even changed any at all since at least Windows 3.1?

Installation was simple though. Norton deleted notepad.exe for me because it got infected by a trojan from a damn website. All i done was put the exe and dll there and it worked.

Fantastic!

# re: How to replace notepad.exe with notepad2.exe

Wednesday, July 14, 2004 7:51 AM by Josh
A simpler method: Just stick notepad in a folder somewhere, right click on a text document and choose Open With, select notepad2.exe (You may have to search for it), tick the 'Always use this program' box and click OK. This saves all that messing around, and you don't even need admin privleges to do it.

# re: How to replace notepad.exe with notepad2.exe

Tuesday, August 03, 2004 12:55 AM by flyrite
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!

# re: How to replace notepad.exe with notepad2.exe

Tuesday, August 03, 2004 12:57 AM by flyrite
oops, copied the html from a page i was creating. haha.

# Windows Protected Files Replacement

Sunday, October 10, 2004 2:46 PM by Just Coding

# Windows Protected Files Replacement

Sunday, October 10, 2004 2:47 PM by Just Coding

# re: Windows Protected Files Replacement

Monday, October 11, 2004 3:49 AM by Just Coding

# How to replace notepad.exe with notepad2.exe

Thursday, November 25, 2004 12:29 PM by Quick Links
How
to replace notepad.exe with notepad2.exe - Good entry on an MSDN blog
on replacing the lame notepad program with the superior notepad2

# Notepad2

Friday, December 10, 2004 9:54 AM by Mihir Solanki
Notepad2

# Building a Better Notepad with Notepad2.exe

Saturday, December 18, 2004 6:48 PM by Lee Packham's Corner

# Notepad2

Sunday, January 23, 2005 3:41 PM by .Text Blog

# How to replace notepad.exe with notepad2.exe

Wednesday, March 09, 2005 10:11 AM by CodeBetter.Com Link Blog

# Notepad2

Thursday, March 17, 2005 5:36 PM by Mihir Solanki

# My GrokTalk - Ten Tools in Ten Minutes

Thursday, June 09, 2005 2:39 AM by ComputerZen.com - Scott Hanselman's Weblog

# Scott Hanselman's 2005 Ultimate Developer and Power Users Tool List

Sunday, June 19, 2005 10:49 PM by ComputerZen.com - Scott Hanselman's Weblog

# Scott Hanselman's 2005 Ultimate Developer and Power Users Tool List

Sunday, June 19, 2005 10:51 PM by ComputerZen.com - Scott Hanselman's Weblog

# Scott Hanselman's 2005 Ultimate Developer and Power Users Tool List

Monday, June 20, 2005 11:07 AM by ComputerZen.com - Scott Hanselman's Weblog

# Scott Hanselman's 2005 Ultimate Developer and Power Users Tool List

Monday, June 20, 2005 12:02 PM by ComputerZen.com - Scott Hanselman's Weblog

# Replace windows notepad with notepad2

Monday, September 05, 2005 7:33 PM by Project84

# Replace windows notepad with notepad2

Monday, September 05, 2005 7:33 PM by Project84

# Free Tools - Notepad2, RSS Bandit

Sunday, September 18, 2005 11:10 AM by Vibha Fauver

# Solo Technology :: Blog Archive :: Thursday stuff

Friday, February 24, 2006 1:17 AM by Solo Technology :: Blog Archive :: Thursday stuff

# Note to self: Scott Hanselman's 2005 Ultimate Developer and Power Users' Tool List

Monday, February 27, 2006 9:55 AM by Eldar (NasdaqNM: ERJR)

# Note to self: Scott Hanselman's 2005 Ultimate Developer and Power Users' Tool List

Monday, February 27, 2006 11:52 AM by Eldar (NasdaqNM: ERJR)

# Geek from the street &raquo; Blog Archive &raquo; My sysadmin toolbox

# Code Thread &raquo; Notepad2

Friday, April 07, 2006 3:49 AM by Code Thread » Notepad2

# Sostiture Notepad con Notepad2

Sunday, May 07, 2006 7:12 AM by .NET Tools Blog

# Scott Hanselman's 2006 Ultimate Developer and Power Users Tool List for Windows

Tuesday, August 29, 2006 3:41 AM by Scott Hanselman's Computer Zen

# Notepad2: Windows Notepad Replacement -- What About Paul?

# Cyber-minds.net - Blog &raquo; Notepad2 as substitute for windows notepad

# Scott Hanselman的终极工具列表(2006年版)

Thursday, September 07, 2006 11:42 AM by thebesghost
[来源: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等等

详见他的博客帖子,
Scott

# Code Thread :: Notepad2

Thursday, November 02, 2006 4:41 PM by Code Thread :: Notepad2

# NotePad2

Saturday, January 13, 2007 5:39 PM by ExplosiveDog.Com

NotePad2 is another Windows NotePad replacement. This text editor has syntaxt highlighting (C# too!).

#

Monday, June 04, 2007 5:24 AM by TrackBack

# &raquo; Metin Edit??r??

Friday, June 15, 2007 7:59 AM by » Metin Edit??r??

# Notepad2

Wednesday, June 20, 2007 10:24 AM by Just Mark

I&#39;ve been doing a lot of work and research lately around Community Server and the wonderful new version

# Scott Hanselman's Computer Zen - Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows

# Re-install Tools List

Wednesday, October 24, 2007 7:04 PM by BusinessRx Reading List

I have been working on creating a fresh VM image and I thought it would be interesting to list out what

# A Dev&#8217;s Life &raquo; Blog Archive &raquo; ?????????Notepad???Notepad2????????????????????????

# ?????????Notepad???Notepad2????????????????????????

Sunday, November 18, 2007 1:25 PM by ?????????Notepad???Notepad2????????????????????????

# HowTo replace notepad w/ notepad2...

Friday, December 14, 2007 5:39 PM by Eldar's thoughts

See Omar Shahine's post. Here is Omar's first method that I use: 1) Rename Notepad2.exe to Notepad.exe2)...

# Favorite Tools

Thursday, December 27, 2007 8:51 PM by Redwerb

I am always on the lookout for new tools to help me become more productive. This list contains the tools

# Favorite Tools

Saturday, January 05, 2008 2:09 PM by Redwerb

I am always on the lookout for new tools to help me become more productive. This list contains the tools

# ?????????DM ?? Blog Archive &raquo; Scott Hanselman&#8217;s 2007 Ultimate Developer and Power Users Tool List for Windows

# Send the standard windows editor to the happy hunting grounds &laquo; A particle in time

# Two Geeks Talk Here &raquo; The best free source code editor

Tuesday, January 15, 2008 3:31 PM by Two Geeks Talk Here » The best free source code editor

# Virtually Anything &raquo; Blog Archive &raquo; Replace Notepad w/Notepad2

# Software Information &raquo; Omar Shahine&#8217;s WebLog : How to replace notepad.exe with notepad2.exe

# how to replace windows

Sunday, April 27, 2008 4:45 PM by how to replace windows

# 10 Essential Free Software Programs ~ Tech Blog by Bram Cool

# how to replace windows

Saturday, June 14, 2008 2:11 PM by how to replace windows

# ????????????????????? ???????????? ???????????????????????? ?????? &laquo; ????????????????????? ??? ??????????????????????????? ?? ??????????????????????????? ??????????????? ??????????????????

New Comments to this post are disabled
 
Page view tracker