Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Add "Open with TextPad" to context menu in Windows

 
Post new topic   Reply to topic    Community Forum Index -> Tips
View previous topic :: View next topic  
Author Message
badguynee



Joined: 02 Nov 2009
Posts: 1

PostPosted: Mon Nov 02, 2009 10:39 am    Post subject: Add "Open with TextPad" to context menu in Windows Reply with quote

This a little howto on adding textpad to the context menu in windows 7.
This is broken into two steps:

1. Add TextPad to your PATH variable:
This is not hard to do, and you really should read up on what the PATH variable is if you are going to mess around with it. If you can't figure out how to do this, then you shouldn't be doing this anyway.

2. Add "Open With TextPad" command to the registry
Open regedit
you want to go to:
Code:
HKEY_CLASSES_ROOT\*\shell

then add a new key
Code:
HKEY_CLASSES_ROOT\*\shell\Open with TexPad

then add a new key to that
Code:
HKEY_CLASSES_ROOT\*\shell\Open with TexPad\Command

change the default vaule in your key to
Code:
textpad.exe %1


props to howtogeek.com for having these instructions for notepad
Back to top
View user's profile Send private message
robertcollier4



Joined: 31 Jan 2012
Posts: 22

PostPosted: Tue Jan 08, 2013 9:08 pm    Post subject: Reply with quote

You can do it a better way by passing the filename with DDE so that Textpad will not launch a new instance but rather open the file in the current window. Save the following as a .REG file and Right Click on the .REG file and choose Merge.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell]
@="Textpad"

[HKEY_CLASSES_ROOT\*\shell\Textpad]
@="&Textpad"

[HKEY_CLASSES_ROOT\*\shell\Textpad\command]
@="\"C:\\Program Files\\TextPad 6\\TextPad.exe\" -s"

[HKEY_CLASSES_ROOT\*\shell\Textpad\ddeexec]
@="[open(\"%1\")]"

[HKEY_CLASSES_ROOT\*\shell\Textpad\ddeexec\application]
@="TextPad.6"

[HKEY_CLASSES_ROOT\*\shell\Textpad\ddeexec\topic]
@="system"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Tips All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB