NP++ 7.7 insists on opening a text document with "txt" extension

• Hi.

I have a text file, called “one” (no extensions whatsoever). When I tried to open it with NP++ 7.7 via command prompt with “notepad one”, it tells me “<path>\one.txt” doesn’t exist. Create it?"

I clicked “No”, then NPP opens but blank…

But of course, from there, I can File-Open and choose “one” and it opens just fine.

Quite frustrating…thanks for letting me rant…

• Check your registry: my bet is that the %1 is not in quotes.

See more details in this older topic: https://notepad-plus-plus.org/community/topic/16687/build-7-6-open-with-association-does-not-open-files-with-spaces-in-filenames

• Hi PeterJones.

Thanks for the reply. Sorry, but that didn’t help.

I believe the problem is with the hack from the article that I linked above.

BUT, if I type “<full path>\notepad++.exe textfile”, it opens the file just fine.

• One workaround is to use

with a period at the end. That will open the file with no extension.

Another workaround is to remove the -notepadStyleCmdline command line argument from the https://notepad-plus-plus.org/features/replace-notepad.html thing. In other words, do:

-notepadStyleCmdline is not documented but I assume enables whatever command line options the original notepad.exe recognizes.

• One more comment about that opening a file using the full path to notepad++ works.

If you run