Friday, November 21, 2008

Replacing Notepad.exe with Notepad2.exe


I do not like notepad.exe... It will not behave the way I think it should so I replaced it with something better: Notepad2.exe
Hare are some of the features:
  - Syntax highlighting: HTML, XML, PHP, ASP (JS, VBS), CSS,
JavaScript, VBScript, C/C++, C#, Resource Script, Makefiles, Java,
Visual Basic, Pascal, Assembly, SQL, Perl, Python, Configuration
Files, Apache Config Files, Batch Files, Diff Files
- Drag & drop text editing inside and outside Notepad2
- Basic regular expression search and replace
- Useful word, line and block editing shortcuts
- Rectangular selection (Alt+Mouse)
- Brace matching, auto indent, long line marker, zoom functions
- Support for Unicode, UTF-8, Unix and Mac text files
- Open shell links
- Mostly adjustable
Below is a batch file I found to help speed things up (Wish I could remember where I found it to give credit) in replacing notepad.  You will notice that notepad2 has been renamed and is in the folder c:\notepad.  Also you will need to un-hide all system files. 
To install just copy the batch file below into a txt file and name it whatever.bat and run it.  That's it. Have fun.

@echo off
echo ****You must have Notepad2.exe in c:\notepad and named notepad.exe****
pause
copy /y %WinDir%\System32\dllcache\notepad.exe %WinDir%\System32\dllcache\notepad.exe.orig
copy /y %WinDir%\ServicePackFiles\i386\notepad.exe %WinDir%\ServicePackFiles\i386\notepad.exe.orig
copy /y %WinDir%\System32\notepad.exe %WinDir%\System32\notepad.exe.orig
copy /y %WinDir%\notepad.exe %WinDir%\notepad.exe.orig
copy /y C:\notepad\notepad.exe %WinDir%\System32\dllcache
copy /y C:\notepad\notepad.exe %WinDir%\ServicePackFiles\i386
copy /y C:\notepad\notepad.exe %WinDir%\System32
copy /y C:\notepad\notepad.exe %WinDir%
echo.
echo.
echo Write down the locations after the REG_MULTI_SZ or REG_SZ in case the batch file does not work.  If it does not work, you will need to look in the locations from below to find other copies of notepad.exe that are possibly being used to restore the original notepad.exe
echo.
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "Installation Sources"
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v ServicePackSourcePath
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v SourcePath

twitter @dkirkland

Posted by email from Musings, Ramblings and Other Assorted Rubbish (posterous)

No comments: