Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the correct way to install Notepad2 (or some other equivalent) in Windows 7 so that it is executed when WindowsKey-R -> notepad is entered?

I've tried creating shortcuts in C:\windows\System32 or replacing Notepad.exe. Both failed due to permissions issues.

share|improve this question

closed as off-topic by masegaloeh, mdpc, Katherine Villyard, 84104, Ward Apr 17 '15 at 3:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – masegaloeh, mdpc, Katherine Villyard, 84104, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.

Just curious, if its only permission issues, then why not change the permissions? – cop1152 Jun 21 '09 at 14:02
up vote 11 down vote accepted

Never replace actual system files. This causes more problems than the actual benefit.

A build of Notepad2 using "Image File Execution Options\Debugger" (a feature in Windows usually used to automatically attach debuggers on processes by substituting a process for another) to replace the original Notepad is available at this URL:

It is way safer than replacing notepad, and doesn't require Windows File Protection to be disable or circumvented. Works on any version of Windows >= XP.

share|improve this answer

Found it... leaving the question up in case others find it useful

share|improve this answer
-1 for link only answer (and it's better to use the image file execution method anyway) – matt wilkie Oct 2 '14 at 18:19

There is a solution right on Notepad2 webpage.

Replacing Notepad in Windows Vista

  1. Download and extract Notepad2.
  2. Rename Notepad2.exe to notepad.exe.
  3. Find c:\windows\notepad.exe and c:\windows\system32\notepad.exe and set the owner to ‘Administrators’, and grant Administrators full control.
  4. Using Windows Explorer, drag and drop the renamed notepad2.exe to c:\windows and c:\windows\system32.

Just don't forget to grant 'Administrators' full control.

share|improve this answer

You need to replace the notepad file notepad2's file (renaming is a good option) in 3 directories:

(start replacing them in reverse order, starting with ...DLLCACHE)

Put retry when Windows start complaining about it. And it works.

share|improve this answer

This is simple:

  1. go to Notepad++ dir and copy Notepad++.exe to notepad.exe but keep both in that dir
  2. edit your path enviroment settings to include that dir but put in int the front of the settings for example:



    C:(PATH to dir of notepad++);C:/Windows/system32;...
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.