(I tried to edit my post, but it took me too long. So pretend this is appended to the end of my post.)
For example, I use
npp_save cd "$(CURRENT_DIRECTORY)" g++ "$(FILE_NAME)" -o "$(NAME_PART)" npp_run cmd.exe /k "$(NAME_PART)"to save, compile, and run a simple c++ program. All outputs end up in the NppExec’s console window.
We weren’t trying to evade the original question a year ago. We were trying to clarify, to make sure we gave the best possible answer for the OP’s situation. I chose to do it by giving a bunch of information, and hoping it would be enough to answer the OP’s question… and if not, to give the OP more knowledge, to make it easier to clarify the actual needs.
If your post had been the OP, I would have skipped the mention of the PythonScript plugin (also – I should have been more clear; the PythonScript plugin uses a python interpreter to manipulate the Notepad++ GUI and scintilla editor components that NPP uses internally for doing the text editing; for running arbitrary Python code, I would use the NppExec plugin as well). Given your description, NppExec’s console window is the one that made the most sense – though the two methods of bringing up a separate cmd.exe, starting from within Notepad++, would also probably do what you want, though not as well integrated into Notepad++.