How to replace notepad with notepad++ or notepad2 in Windows 7


The notepad.exe is a protected system file, much like the explorer.exe, however you can replace the notepad with notepad++ or notepad2 with some tricks. Detailed instructions after the break.

Replace notepad with notepad++

This is an extensive guide that will teach you how to replace the notepad with either notepad2 or notepad++ in Windows 7. This should also work in Windows XP and Windows Vista.

Quick Links

My recommendation: Use notepad2 and you won’t have to replace the notepad over and over again, because it’s only a registry value that you have to add, which can also be removed quite easily. If you replace the notepad with notepad++, you’ll might have to repeat the steps again. Tip: Bookmark this tutorial!

Replace Notepad with Notepad2

1. Download Latest Notepad2 (Notepad2 4.1.24 right now)
2. Install it.
3. Open elevated registry editor:

Regedit.exe

4. Uncollapse HKEY_LOCA_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\

5. Right-click on Image File Execution Options and click on New – Key, enter notepad.exe

6. Now in the right-pane: Right-click and create a new string value:
Create new string value in Windows 7

7. Give the string the name Debugger

8. Double-click on Debugger and enter the full path to the Notepad2 exe file, e.g. “C:\Windows\Notepad2.exe” and add /z at the end! Complete path: “C:\Windows\Notepad2.exe” /z

Download Registry Keys for Notepad2

Optionally you can use the following registry keys. Copy this into a notepad and save it as a .reg file (select all from the dropdown when you save the file). Also replace C:\Notepad2\Notepad2.exe with your own path:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
“Debugger”=”C:\\Notepad2\\Notepad2.exe\” /z”

Download Replace Notepad with Notepad2 Registry Key

Replace Notepad with Notepad++

Replacing the notepad with notepad++ in Windows 7 is slightly more complicated than replacing the notepad with notepad2. Why? Because you actually have to replace system files, which is difficult for beginners.

1. Download Notepad++ (Latest 5.7.1 RC2)
2. Install Notepad++
3. Open an elevated command prompt

4. Enter cd C:\Windows\

5. Enter TAKEOWN /F notepad.exe

Take ownership notepad.exe

6. Enter ICACLS notepad.exe /grant administrators:F Replace administrators with your username

Grant permissions notepad.exe

7. Rename notepad.exe to notepad2.exe

8. Download notepad.exe (launcher) for either 32-bit or 64-bit:

Notepad.exe Launcher Windows 7 32-bit
Notepad.exe Launcher Windows 7 64-bit

Optionally, you can also download this notepad++ launcher from here.

Copy notepad.exe or notepad64.exe to C:\Windows, respectively C:\Windows\system32.

9. Rename notepad.exe/notepad64.exe to notepad.exe

10. Repeat steps 4-9 for C:\Windows\system32\notepad.exe

If you run into any problems or if you have any questions, please post a comment below and we will get back to you as soon as possible.

Tip: Keep in mind that you will have to replace the notepad++ files again if you should ever use the Windows System File Checker SFC.exe to restore the original system files. Therefore I recommend notepad2, which is a lot easier to handle.

Rate this article:
This article was rated 5 out of 5 stars
Based on 1 votes

How to defrag Windows 7?
Windows cannot use this hardware device because it has been prepared for safe removal
Printing Multiple Pages On One Paper Sheet In Word / Open Office (Duplex Print)

Juicy Logo White You love Windows, Gaming and everything digital? Great, we too! We have thousands of great Windows 7 themes, registry tweaks, tutorials, so please use our search box if you look for anything specific.

If you have some awesome desktop themes, tips or want to write for us, then drop us a mail!



Written by: Oliver Krautscheid (Nick: oliversk)
Oliver is the founder and lead editor of this site. He is interested in finding new ways to break Windows, find common e.... Full Bio

Contact The Author: support@windows7themes.net Get Free Help.png

Connect:

facebook google twitter LinkedIn


Need help? Ask a question at our QA site, click the red button to get started:

3 Responses to How to replace notepad with notepad++ or notepad2 in Windows 7

  1. Andy Potanin said:

    That works, thank you.

  2. S3NTYN3L said:

    Works, but not as it should.

    Running Notepad.exe (after making the above changes) will make Notepad++ open but ++ will also open the original notepad.exe binary file.

    Any way to get this behavior to stop?

  3. Tim said:

    Just a note: don’t forget about C:\windows\SysWOW64\notepad.exe in 64-bit Windows 7

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>