Open file with existing instance of Notepad++ portable

I have Notepad++ portable "installed" and if I try to open a file from Windows Explorer that should open with Notepadd++ portable I get the error

Another instance of Notepad++ is already running. Please close other instances of Notepad++ before launching Notepad++ portable.

My problem is I don't want to open a separate instance, I want the file to open with the existing instance.

I found a blog post on how to get around this issue by opening multiple instances http://mattrefghi.com/blog/2010/11/how-to-launch-multiple-instances-of-notepad/ but like I said, I'd prefer the file to open in my currently running Notepad++ window

I am able to drag & drop the file in the existing window and it works, but double clicking won't open the file.

Anyone know a trick to make this work?


You need to point to the application executable, not to the launcher. If you point to :

X:\PortableApps\Notepad++Portable\Notepad++Portable.exe

it doens't work and tells you Notepad++ is already running.

But if you point to :

X:\PortableApps\Notepad++Portable\App\Notepad++\notepad++.exe

then everything works as expected.


I have seen this issue happen when Notepad++ crashes when it is closed. Although the application window appears to close, the Notepad++ process is still running. You can check the task manager and kill it off from there.

This is usually caused by a plugin. You can move or rename the plugin directory and see if Notepad++ closes cleanly. If it does then add the plugins back one at a time to identify the misbehaving one.