Open file with existing instance of Notepad++ portable

notepadportable-apps

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?

Best Answer

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.

Related Question