Add TextPad to the right-click menu in Explorer

General questions about using TextPad

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

Post Reply
OnlyTextPad
Posts: 41
Joined: Sat May 20, 2006 9:10 pm
Location: Helsinki
Contact:

Add TextPad to the right-click menu in Explorer

Post by OnlyTextPad »

It was default on 4.7 , but it seems to have disappeared (at least during my installations ; ) or my be I used HiJackThis too fast :D

Here is the registry hack working for me ...
So simply save it on a *.reg type of file and double-click it to load it into the registry

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\TextPad]
@="&TextPad"
[HKEY_CLASSES_ROOT\*\shell\TextPad\command]
@="cmd /c start /max textpad.exe  \"%L\""
[HKEY_CLASSES_ROOT\Folder\shell\TextPad]
@="&TextPad"
[HKEY_CLASSES_ROOT\Folder\shell\TextPad\command]
@="cmd /c start /max textpad.exe  \"%L\""
;So a non-privileged user can apply it, replace 'HKEY_CLASSES_ROOT' with 'HKEY_CURRENT_USER\Software\Classes'



One small slightly annoying thing - the flash of the cmd.exe starting :D Any ideas how to make it not appear :D
gan

Post by gan »

I think it would be easier using textpad and select "Configure-Preferences" from the menu and check the "Context menu". Then it will be on the context menu in explorer, but it's not started from a dos windows and no cmd.exe flashing.
OnlyTextPad
Posts: 41
Joined: Sat May 20, 2006 9:10 pm
Location: Helsinki
Contact:

Thanks it was much easier :D

Post by OnlyTextPad »

I wander why the check is removed by default on the installer ... anyway moderator please remove this post :D
jasonb
Posts: 12
Joined: Sat Dec 20, 2003 2:14 pm

Post by jasonb »

If you have Vista, it doesn't seem to work - even if you configure it. See this discussion for the correct registry information that won't call it via a DOS window.
WESTERN WOMBAT
Posts: 10
Joined: Fri Apr 20, 2007 1:27 pm

Surely not CMD !?

Post by WESTERN WOMBAT »

That's a kludge, if ever I saw one.

I mean this
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\TextPad]
@="&TextPad"
[HKEY_CLASSES_ROOT\*\shell\TextPad\command]
@="cmd /c start /max textpad.exe \"%L\""
[HKEY_CLASSES_ROOT\Folder\shell\TextPad]
@="&TextPad"
[HKEY_CLASSES_ROOT\Folder\shell\TextPad\command]
@="cmd /c start /max textpad.exe \"%L\""
;So a non-privileged user can apply it, replace 'HKEY_CLASSES_ROOT' with 'HKEY_CURRENT_USER\Software\Classes'
GXDATA
oneto
Posts: 6
Joined: Thu May 03, 2007 7:12 pm
Location: Grasse, France

Texpad in Right Click Menu for Text & Hex edit

Post by oneto »

I use since version 3 something like:

Code: Select all

[HKEY_CLASSES_ROOT\*\Shell\OpenWithTextPadHex]
@="Open with TextPad (Hex)"
[HKEY_CLASSES_ROOT\*\Shell\OpenWithTextPadHex\command]
@="C:\\PROGRA~1\\TEXTPA~1\\TEXTPAD.EXE -s \"%1(0x0001)\""
[HKEY_CLASSES_ROOT\*\Shell\OpenWithTextPadText]
@="Open with TextPad (Text)"
[HKEY_CLASSES_ROOT\*\Shell\OpenWithTextPadText\command]
@="C:\\PROGRA~1\\TEXTPA~1\\TEXTPAD.EXE -s \"%1(1,1)\""
which give the choice to force an open of ANY file in either Text or Binary mode. Very convenient to have a quick look at weird files ! :D
WESTERN WOMBAT
Posts: 10
Joined: Fri Apr 20, 2007 1:27 pm

Short (8-character) paths and filenames - problem

Post by WESTERN WOMBAT »

This may work for you, but the short pathnames and filenames may not be valid for some people - I suspect.

For example, depending on how many versions of TextPad they had installed, and the order in which they insatlled them -

TEXTPA~1

may represent \TextPad 3\ or \TextPad 5\ or \TextPad 4\

[It did not work for me. What happened was that the Windows file association (Open With..) form was shown, with Textpad as the preferred selection.
This occurred even for .txt extension ]


I think it would be best if Helios people provided a simple .REG file, or a new version that fixed some of these poroblems and cleaned up the bad registry settings
(eg, \TextPad 4\ remnants when 5 is installed).
GXDATA
oneto
Posts: 6
Joined: Thu May 03, 2007 7:12 pm
Location: Grasse, France

Re: Short (8-character) paths and filenames - problem

Post by oneto »

WESTERN WOMBAT wrote:This may work for you, but the short pathnames and filenames may not be valid for some people - I suspect.
[...]
I entirely agree, that's why I said "something like", meaning "adapt paths/filenames to your configuration"...
I used short paths since under Win95, when I first did used this, paths with blanks were rather tricky to use. Sorry if I wasn't clear enough :oops:
lgpiper
Posts: 7
Joined: Sun May 20, 2007 8:20 pm

Post by lgpiper »

gan wrote:I think it would be easier using textpad and select "Configure-Preferences" from the menu and check the "Context menu". Then it will be on the context menu in explorer, but it's not started from a dos windows and no cmd.exe flashing.
Thank you for finding this. Why ever would someone change basic functionality that we've all been using as default for five years?
Post Reply