Page 1 of 1

Really annoying - right click to open in Textpad.

Posted: Wed Jun 06, 2012 10:36 pm
by lklawrie
Everytime I right click from the explorer window to open a file in Textpad, it also creates a new document (which I then have to close).

This is Textpad 6. Is there some new setting I'm missing?

Windows XP is the OS.

Posted: Wed Jun 06, 2012 10:44 pm
by ak47wong

Right click to open in Textpad

Posted: Fri Jun 08, 2012 9:40 am
by Vic
In Preferences -> General, ensure the Context menu is checked in the section 'Put shortcuts to TextPad on:'

That ensures only the file you want opened is opened not another blank document1.

Regards,

Vic

TextPad 6 on Windows 7 64-bit

Posted: Fri Jun 08, 2012 11:27 am
by lklawrie
The preferences ARE set that way -- it still opens a blank document in addition to the document I want opened.

Posted: Tue Jun 19, 2012 9:02 am
by nvj1662
Odd, but I have a Windows XP3 installation that does opens the additional blank document, but a Windows 7 installation that does not. FWIW.

Posted: Tue Jun 19, 2012 8:05 pm
by ineuw
lklawrie wrote:The preferences ARE set that way -- it still opens a blank document in addition to the document I want opened.
I also have this bug. I guess we'll soon see v6.2 released.

Posted: Wed Jun 27, 2012 2:02 am
by rlgh60
Yep. Same bug after updating from 5.4 on XP SP3. It does not matter if I open 1 or multiple documents through the context menu. All open and last one is a new document.

This fixes it..

Posted: Fri Aug 24, 2012 7:44 pm
by Geo
Just run ccleaner from piriform: http://www.piriform.com/ccleaner/download

go to Tools, Startup, Context Menu

You will see 2 entries for textpad. Delete the entry that has a blank entry in the "File: field, and there you go. No more annoying extra "Document" when you use the context menu.

I imagine that you could use other utils to manage this, but ccleaner is a staple proggie for me. I am an IT guy and use this tool on literally hundreds of machines with no problems whatsoever.

Posted: Fri Nov 16, 2012 2:46 pm
by rneuendorff
I am on XP and just upgraded to 6.1.3 from 5.3.1 and I am getting the blank document when opening from the context menu, even though it is listed as one of the issues fixed with this version. I do see that Send To and Open With work as expected. I downloaded CCleaner and only have one TextPad entry in the Context Menu section, not two as the previous poster mentioned.

Any other suggestions?

[EDIT] After an uninstall and re-install, and a couple attempts of disabling and enabling Context Menu in the General Preferences tab, it is working as expected.

Posted: Tue Jan 15, 2013 3:27 pm
by pwatson
This is still a problem in 6.2.2 when starting from a shell command line. Is there a fix or workaround?

Posted: Wed Jan 16, 2013 10:36 pm
by pwatson
Below is a batch script that works for me.

===

@ECHO OFF
SET _VI_PARAMS=%1 %2 %3 %4 %5 %6 %7 %8 %9

SET _VI_PARAMS_COPY=%_VI_PARAMS%
SET _LENGTH=0
:Loop
IF DEFINED _VI_PARAMS_COPY (SET _VI_PARAMS_COPY=%_VI_PARAMS_COPY:~1%&SET /A _LENGTH += 1&GOTO Loop)

SETLOCAL ENABLEDELAYEDEXPANSION
FOR /L %%a in (1,1,%_LENGTH%) do if "!_VI_PARAMS:~-1!"==" " SET _VI_PARAMS=!_VI_PARAMS:~0,-1!
START "" "C:\Program Files\TextPad 6\TextPad.exe" -q %_VI_PARAMS%
SET _VI_PARAMS=
EXIT /B 0

===

NB: Remove any trailing spaces from lines. This may occur when using copy/paste from the web page.

Posted: Fri Jan 18, 2013 11:42 pm
by robertcollier4
Try the following Registry script, should fix it. To use, paste the following into a blank text file and save the file with a .REG extension. Then right click on the .REG file and go to "Merge". You should also uncheck "Preferences > General > Put shortcuts to Textpad on > Context menu"

Code: Select all

Windows Registry Editor Version 5.00

; Removes the default ContextMenuHandler pointing to CLSID
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\TextPad]

;Re-adds ContextMenuHandler manually that invokes Textpad via DDE
[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"

Posted: Fri Jan 18, 2013 11:51 pm
by robertcollier4
Another reason for this happening can be for when notepad is being called with file names with spaces in it and you have Textpad set to "Replace Notepad".

To fix: Search registry for all instances of following text:
notepad.exe %1
replace with:
notepad.exe "%1"

From Textpad help page "Command Line Parameters":
- An empty, quoted filename (i.e. "") causes a new document to be created.