Button to open selected file in Notepad++

I am quite new to scripting, and so am not fully aware of the existing limitations of JScript.
I want to make a button that opens a selected file in Notepad++, but am unsure of whether it is even possible to open files in other programs through Dopus.

I hope I am not asking a repetitive question, feel free to let me know, and I will do more research.

Thanks in advance!

Just make a normal, non-script button which runs something like this:

"C:\Program Files\Notepad++\Notepad++.exe" {filepath}

(Change the exe path as appropriate.)

1 Like

Wow, thank you,

I was clearly overcomplicating.

Again, apologies if something similar had already been asked.

1 Like

Just as an example... this is the button i've got for mine at the moment as i recently had issues that i solved with the existing button i had drag-and-dropped not doing what i wanted it and expected it to do. This keeps the files selected and also doesn't consider folders if any are selected. Hope this helps further. This is using a portable installation not in Program Files.

@filesonly
@nodeselect
cd "C:\NotepadPlusPlus"
@async:"C:\NotepadPlusPlus\notepad++.exe" {filepath}
1 Like

I forgot to mention before, if you drag a program to a toolbar (while in Settings > Customize mode), you can choose how the new button is made, without having to learn all the details:

1 Like