Replace Notepad causes TextPad to open in a new instance

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Replace Notepad causes TextPad to open in a new instance

Post 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!
(2[Bb]|[^2].|.[^Bb])

That is the question.
garbledwords
Posts: 4
Joined: Tue May 01, 2007 2:10 pm

Post 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.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post 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.
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post 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.
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

Behavior unchanged in 7.5
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

Sorry. I experienced a MDTO (Me-ntal Duh Time Out)

Open in Existing Session works great!
(2[Bb]|[^2].|.[^Bb])

That is the question.
Post Reply