Menu

Replacing Notepad.exe in Windows Vista

I know this has been covered on other sites but I thought I would post it here for the benefit of our readers.  Why would you want to do this?  Well, because Notepad that comes with Windows is, well, if you’ve used it then you know what it’s like and have probably moved on to something better. However, simply adding an additional text editor doesn’t change the fact that Notepad will still open as the default editor for many files within Windows Vista.  So how do you accomplish this?  It’s (almost) simple:

  • Open a command-prompt with administrator priveleges (right-click, run as administrator).  If you have UAC disabled then you can open a regular command-prompt.
  • Take ownership of notepad.exe using takeown /f c:\windows\system32\notepad.exe
  • Grant yourself full access rights using cacls c:\windows\system32\notepad.exe /G <username>:F (replacing <username> with your username)
  • Using Explorer, replace notepad.exe with the editor you would like to use after renaming it to notepad.exe
    • If you are using Notepad2 to replace Notepad you would just rename Notepad2.exe to Notepad.exe
  • JC

    works perfectly, thank you so much

  • Yanick

    If you have a x64 system, you have to repeat this operation on the C:\Windows\SysWOW64 folder. After doing this, IE will open the new Notepad.

    Thanks for the hint!

  • Super post. There’s SOO much one can replace on Vista. I dumped their “search” function for Copernic.

    Thanks for the tip on NOTEPAD ++

    Kind regards,
    Martin

  • bj

    @yanick: thanks for the hint with SysWOW64