Replacing Notepad with Notepad2 on Windows 7 64-bit

Late to the show but here I am, using notepad2 as my default notepad editor. I like the additions that notepad2 gives me over notepad and thereby delivering an equal snappy feeling when I open up a file with it. But replacing it as my default notepad on my Windows 7 64 Bit version took me more time than I am willing to admit.. So I thought I might well jot my solution down. I took my instructions from the notepad2 official webpage and Simon Steeles description on how to install his Programmer’s Notepad on a 64-bit Windows machine.First of all download a x64 version of the notepad2 then drag the folder into your program folder (on my machine C:\Program Files (x86)\notepad2). Now create a batch file (due to permissions you may want to first store it on your desktop and then drag it into the folder..):

reg add “HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe” /v “Debugger” /t REG_SZ /d “\”%~dp0Notepad2.exe\” /z” /f

Run the batch file (as Administrator) in your notepad2 directory. Now notepad2 should be your default editor.To reverse the step above run this batch script (again as Administrator):

reg delete “HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe” /f

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: