April 16, 2010

0

Replace Windows Notepad with Notepad2

  • April 16, 2010
  • anand
  • Share
  • As Windows Notepad is fast and small it is used extensively to store notes, contact nos., email id etc. However there are some draw backs of this notepad. They are as follows.

    What are some of the things I do not like about Windows Notepad:


    1. Does not handle large text files well.
    2. Does not show line numbers next to each line
    3. Does not support advanced search and replace features.
    4. Does not open text files from other platforms in a readable manner.
    5. Can't change the background or foreground colors.
    6. No good indent support

    So what are our options? Replace it with a freeware notepad replacement. For this tutorial we will focus on Notepad2. Notepad2 is a freeware replacement to notepad with the following features:

    1. Customizable syntax highlighting
    2. HTML, XML, CSS, JavaScript, VBScript, ASP, PHP, CSS, Perl/CGI, C/C++, C#, Java, VB, Pascal, Assembler, SQL, Python, NSIS, INI, REG, INF, BAT, DIFF
    3. Drag & drop text editing inside and outside Notepad2
    4. Basic regular expression search and replace
    5. Useful word, line and block editing shortcuts
    6. Rectangular selection (Alt+Mouse)
    7. Brace matching, auto indent, long line marker, zoom functions
    8. Support for Unicode, UTF-8, Unix and Mac text files
    9. Open shell links
    10. Mostly adjustable
    Notepad2 notepad replacement

    Providing a seamless replacement of notepad can be difficult, though, due to Windows XP's and Windows 2000/2003's Windows System File Protection (SFP) security feature. What this means is that when you replace a Windows system file with another file, SFP will automatically replace it with the original. I have though, provided some information below that should make it easier to do this replacement.
    Replacing Notepad with Notepad2
    The goal here is to make working with Notepad2 seem like you are working with the original Notepad by actually replacing notepad.exe with the notepad2 executable. To do this we will rename notepad2.exe to notepad.exe and copy it to the proper locations so as to overcome SFP as described above. Before we do anything, please enable the viewing of hidden system files.





    Now we need to download Notepad2 from the following link:

    Download NOTEPAD2


    Save it to your hard drive and extract the files to C:\Notepad. Once extracted, rename notepad2.exe to notepad.exe. Now you should have a folder called C:\Notepad that contains the file notepad.exe.





    When you have have followed the steps above you need to do the next series of steps. These steps should be done fairly quickly in order to beat SFP at its game. If you go too slow, then SFP may replace notepad.exe with the original Windows notepad. For those who do not want to deal with the instructions below, I have created two batch files that will do all these steps for you and almost always gets past the SFP problem. These batch files can be downloaded from the following link depending on your operating systems:

    Notepad Replacement for XP


    As long as you have notepad2.exe saved as C:\Notepad\notepad.exe, then the batch files above should be able to perform the replacement for you. After running the batch file you may get an alert from Windows saying one of your files (notepad.exe) was replaced with another file and asking if you want to restore it. You should press the Cancel button and the Yes button so that it does not replace the file. When done, feel free to delete your C:\notepad folder and hide your files again.

    If instead you would like to do this manually, then below are the manual steps that the batch files does for you. These steps should be done in this exact order and as fast as possible to bypass SFP:

    1. Make backup copies of notepad.exe in the following directories (Not necessary but good in case you want to roll back to the original notepad):

    * C:\Windows\System32\notepad.exe

    * C:\Windows\notepad.exe

    * C:\Windows\system32\dllcache\notepad.exe

    * C:\WINDOWS\ServicePackFiles\i386\notepad.exe

    * C:\Windows\System32\dllcache\notepad.exe

    2. Copy C:\Notepad\notepad.exe to all the directories listed above overwriting the notepad.exe that is there.

    3. If Windows will issue an alert stating that the new notepad.exe is not the correct one and if you would like to correct. Press cancel at this prompt and then press Yes as we want to keep the new notepad replacement.

    4. Delete the C:\notepad folder.

    5. Hide your files again.

    This will certainly work....

    Give a Feedback after you have used it

    0 Responses to “Replace Windows Notepad with Notepad2”

    Subscribe