Page 1 of 1

Replace Notepad causes TextPad to open in a new instance

Posted: Wed Dec 31, 2014 9:21 pm
by kengrubb
Using the Replace Notepad option (Configure, Preferences, General) causes TextPad to open in a new instance whenever I double click on a file associated with Notepad (.txt, .log, et al.)

I've thought about hacking the registry in HKEY_CLASSES_ROOT\txtfile to use TP, but I was hoping for either a more elegant or less invasive solution.

No, I am not trolling the TP forums on New Years Eve Day because I have nothing better to do.

Merry New Year to all!

Posted: Tue Feb 10, 2015 7:53 pm
by garbledwords
In Win 7, in the start menu (or search) open "Default Programs". Then select "Associate a file type or protocol with a program." Highlight an extension on click on "Change program...", and choose TextPad.

Posted: Sat Feb 14, 2015 5:59 am
by kengrubb
I don't want to have to hack through every file associated with Notepad. Also, there are tools which default to Notepad, and replacing Notepad is the only way to route such things to TextPad.

Posted: Thu Apr 30, 2015 6:06 pm
by kengrubb
I seem to have found it in the Registry, but I am unable to tweak it's behavior.

Checking the Replace Notepad box creates these two reg entries.

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Notepad.exe]
"Debugger"="\"C:\\Program Files\\TextPad 7\\TextPad.exe\" -n"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Notepad.exe]
"Debugger"="\"C:\\Program Files\\TextPad 7\\TextPad.exe\" -n"

I thought that removing the -n option would solve it. It does, but brings a new challenge. Now when I double click on say a .log file, it opens the .log file in my existing instance of TextPad, but it also opens the Notepad.exe in hex mode in TextPad as well.

Posted: Wed May 20, 2015 5:08 pm
by kengrubb
Behavior unchanged in 7.5

Posted: Wed May 20, 2015 6:16 pm
by kengrubb
Sorry. I experienced a MDTO (Me-ntal Duh Time Out)

Open in Existing Session works great!