Replacing Notepad with Notepad++ in Windows 7

For some time now I prefer the use of Notepad++ instead of the Windows default notepad, so lately I decided that I wanted to replace the default notepad with notepad++. With some searching on Google I found a way to do it. There is a link to the original article at the end of the post.

So according to the original article you have first to disable the Windows UAC. You can follow this guide to do it

Then you have to get Notepad++ from it’s official website: http://notepad-plus.sourceforge.net/ and install it.

The next step is to download the Notepad++ launcher which allows you to replace Notepad completely by Notepad++. Then you have to extract the zip’s contents in a new directory, and create a batch script with the following contents:

rem START BATCH COMMANDS
rem PLEASE MAKE SURE THAT USER ACCOUNT CONTROL (UAC) IS TURNED OFF AND PC HAS BEEN REBOOTED FIRST!
rem If you are using VISTA x32 version, then edit this file first by adding “rem ” in front of every line that contains the phrase “syswow64?. Then run the script again.
@echo off
PAUSE

takeown /f c:\windows\syswow64\notepad.exe
cacls c:\windows\syswow64\notepad.exe /G Administrators:F

takeown /f c:\windows\system32\notepad.exe
cacls c:\windows\system32\notepad.exe /G Administrators:F

takeown /f c:\windows\notepad.exe
cacls c:\windows\notepad.exe /G Administrators:F

copy c:\windows\syswow64\notepad.exe c:\windows\syswow64\notepad.exe.backup
copy c:\windows\system32\notepad.exe c:\windows\system32\notepad.exe.backup
copy c:\windows\notepad.exe c:\windows\notepad.exe.backup

copy notepad.exe c:\windows\syswow64\notepad.exe
copy notepad.exe c:\windows\system32\notepad.exe
copy notepad.exe c:\windows\notepad.exe
@echo on
rem END BATCH COMMANDS

Then you have to save the batch script and execute it. The script backups the original notepad just in case.

The source for this guide is the following article: Replace Notepad in Windows 7.  The original article was for replacing notepad with notepad2 but it can also work for notepad++ as described above.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s