Replace Notepad by Disable Windows File Protection

Filed in: Microsoft, Tips n Tricks — March 28th, 2004

advertisement

Frankly speaking, Window’s Notepad is sux. It cannot open big text file and VERY limited function(got function meh?)

Therefore, I always use MetaPad as my default text editor instead of Notepad. Metapad is small and fast, complete with useful functions. The ideal notepad replacement.

Due to the Windows File Protection of Microsoft Windows 2000/XP, replace the default Notepad with program of your choice is not as easy as you think.

MetaPad website has instructions to do that on Windows 2000 and Windows XP. However, the Windows 2000 tip does not work for me. (Windows XP tip works, I tried in my office. :P )

So, here is LcF’s way to replace Windows 2000 (works with SP4) Notepad(and other Windows protected files as well, maybe).

Warning: For advance user only. Do it at your own risk.

  1. Decide the notepad replacement you want to use(MetaPad, in my case) and copy the execuable file(.exe) to Desktop(easy to find later) and rename it to notepad.exe.
  2. Goto Start > Run… and Open: SFC /PURGECACHE This will purge the Windows protected files backup. The following screenshot will come out after you run the command.
    Windows File Protection

    Then, it will ask for Windows 2000 CD.
    Windows File Protection #2

    Do not bother it. Click Cancel button twice (each for above dialog).
  3. We are almost done! Rename notepad.exe in C:\WINNT and C:\WINNT\system32. (Assume your Windows 2000 installation folder is C:\WINNT)
  4. Remember our renamed notepad.exe in Step 1? Copy it into C:\WINNT, C:\WINNT\system32 AND C:\WINNT\system32\dllcache (You need to disable “Hide protected operating system files” under Folder Options first before you can see dllcache folder)

    When you put your copy of notepad.exe into the folders, you will get this:

    Windows File Protection #3

    Again, click Cancel button.
  5. Done! Kiss goodbye to Windows notepad!

Warning: For advance user only. Do it at your own risk.

*phew~ wipe of sweats*

Thought:
Windows File Protection is used to detect and restore Windows protected files replacement. It may be helpful to keep your Windows stable and secure. Read more about Windows File Protection at Microsoft.

There are registry keys to disable Windows File Protection, but they do not work without kernel debugger(what is this?!).

Bottom line:
If you just want to replace notepad.exe, try the simple way first. So far, there is NO WAY to disable Windows File Protection forever on Windows 2000 SP1 and above.

[Updated: 5 Sep 2004]: There IS a registry hack to disable Windows File Protection forever. Windows 2000 SP2 or Windows XP user need hex editor to edit SFC.DLL (or SFC_OS.DLL for Windows XP).

Again, DO IT AT YOUR OWN RISK!

Bookmark and Share

Read also:

  • i will use textpad to replace notepad
    http://www.textpad.com/
    hehe and for some programming too
  • Muddassar
    i have replaced sfc_os.dll and change value in registry. but it stop giving me error but at back end it changed my system files and when i restart my PC, a blue screen came and there was the error " unable to start application". now i wana know why this error comes? and wht shuld i do for this. can u help me in this matter?
  • LcF
    Well, I never agree to replace windows system file. :???:
    If you have backup the file before replace, restore it back in Safe Mode with Command Prompt(press F8 at startup). It should be fine after restore the file.

    If you haven NOT backup the file. Try to get a copy of the file from your friend who using the SAME Windows version and SAME Service Pack. Else, you can reinstall Windows(XP). It take much longer time but it usually works.

    Good luck!
  • I like the BDV Notepad as my Windows Notepad replacement. There are no need to replace Notepad with it, it can be done from the program's interface. But here is the easy instructions on how to completely replace Windows Notepad: http://www.badevlad.com/bdvnotepad_en.htm
blog comments powered by Disqus