Hi,
Well... Seems a shame to forsake Windows File Protection just to replace notepad.exe. But you can turn it off by using REGEDT32.EXE to edit this registry key:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
If there is no REG_DWORD entry called "SFCDisable", you'll need to create one. Its default value in Windows 2000 Pro is "0", but to totally disable file proctection you'll need to set it to a value of 0ffffff9d (hex). This is "undocumented", and Microsoft warns that it may be rescinded in SP2 or later.
It's obviously better to just manage to beat the file protection scheme on this one file. You could probably use an adaptation of the method for preventing hotfix replacement files from being "protected".
1. Open a CMD prompt FIRST!
2. Rename your NOTEPAD.EXE files contained in both functional locations (%SYSTEMROOT$ and %SYSTEMROOT%\SYSTEM32) to NOTEPAD.OLD.
3. Install your replacement executable, making sure you place the new NOTEPAD.EXE files in both functional locations (%SYSTEMROOT$ and %SYSTEMROOT%\SYSTEM32, and do NOT allow the system to reboot following installation.
4. CD into %SYSTEMROOT%\SYSTEM32\DLLCACHE, and rename the copy of NOTEPAD.EXE there to NOTEPAD.OLD.
4. Copy your new replacement NOTEPAD.EXE to the DLLCACHE directory.
5. Restart.
6. You'll probably get an error message about how files required for Windows to operate properly having been usurped by unrecognized versions and that you should stick your installation CD in the drive. If this comes up, it's because the database "knows" you're messing around. Just cancel it.
7. If you've had to cancel the process mentioned in step 6, then Windows will undoubtedly ask you if you're really, really, positively, absolutely sure you want to do this ill-advised and subversive thing. You answer "Yes", of course.
Please note: This is an adaptation of the process that's supposed to keep the file protection scheme from defeating certain types of hotfixes. I hope I've translated it properly. I would never try to deceive anyone. MUA-HA-HA-HA!
No, seriously, it shouldn't do any harm. And, since you've got all your old file copies, you should be able to restore things to the original configuration, if necessary.
At least notepad should be an easy application to replace. I'm not sure I'd want to get into large-scale file complement replacements with something like this. I cringe at defeating the WFP database for fear that it might get corrupted in the process, but I'm probably too paranoid in the rewrite. I used to replace notepad.exe, too, but I'm just using the "Send To" feature to open text files in my favorite editor in W2K.
Hope this helps.
Regards,
Jim