Open document from File Explore in same instance of Textpad

General questions about using TextPad

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

Post Reply
LisaRoney
Posts: 2
Joined: Mon Nov 24, 2003 9:04 pm

Open document from File Explore in same instance of Textpad

Post by LisaRoney »

When I already have textpad open, I would like to add another file to that instance of Textpad from the Windows File Explorer. If I right click on the file in File Explorer and choose either Open or Send to --> Textpad, it opens the file but in a new instance of Textpad. How do I get it to open in the existing instance?
Lisa
User avatar
CyberSlug
Posts: 120
Joined: Sat Oct 04, 2003 3:41 am

Post by CyberSlug »

Configure > Preferences > General
UNcheck "Allow multiple instances to run"
but do check "Allow multiple files on the command line"


If you ever want to launch a new instance of TextPad, you still can if you create a shortcut to textpad followed by the -m switch.

Example: "C:\Program Files\TextPad\TextPad.exe" -m
I think it's useful to put such a shortcut in Windows' send to menu. (For example, I can highlight 5 files and open them in one textpad window, highlight 10 other files and open them in new instance of textpad. I can drag and drop individual files to the particular window I want them in.

Hope that helps
LisaRoney
Posts: 2
Joined: Mon Nov 24, 2003 9:04 pm

Post by LisaRoney »

Thanks! that did it.
Lisa
walidaly
Posts: 5
Joined: Sat Jan 17, 2004 4:51 pm

Post by walidaly »

Ok, I think I have the reverse to this problem
so, new file are forced to be opened in the same textpad 4.7.2 window, tried everything
- unchecking allow multiple instances
-checked it again
-checked allow multiple files on command line
-unchecked it again
I tried to edit the file types
so on advanced edit 'c' files
deleted the -s %1 at the path end and put -m and deleted the use DDE
it worked for .c files but how to do I edit all files including the send to and right click menu?
should I edit the registery?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Sure looks like you've done your homework, so this is just a long shot, go with your
routine but first make sure you close all open document's before you start. HTH
Then I open up and see
the person fumbling here is me
a different way to be
walidaly
Posts: 5
Joined: Sat Jan 17, 2004 4:51 pm

Post by walidaly »

it looks like I'm getting more confused everytime

i edited this

[HKEY_CLASSES_ROOT\TextPad]
and copied the values from

[HKEY_CLASSES_ROOT\TextPad.c]

so that it looked like

[HKEY_CLASSES_ROOT\TextPad\shell\open\command]
@="C:\\PROGRA~1\\TEXTPA~1\\TextPad.exe -m %1"


and deleted the DDE key
NOW, textpad DOESN'T WORK in explorer contextmenu
so I put the old value again and didn't work so unchecked the contextmenu 'apply' then checked it again.
it still have one instance besides
when I open a file in explorer this file takes the focus and I can't turn it off without closing textpad?!!!!

any ideas otherthan RTFM!
User avatar
CyberSlug
Posts: 120
Joined: Sat Oct 04, 2003 3:41 am

Post by CyberSlug »

walidaly wrote:any ideas otherthan RTFM!
Backup or write down any settings and try reinstalling TextPad?
Post Reply