Notepad ++ NppExec runs in cmd

How can I get my commands to run on NppExec running in cmd, as opposed to the built-in console, which doesn’t work with things like “Press any key to continue”, which only works when I press the enter button?

+4
source share
1 answer

Do you want a look at cmd /? output and http://ss64.com/nt/ . Using start along with cmd /c will give an external window, and using cmd /k will contain it in the nppexec console. One thing that I don't like about the /k option is that it really is not, since "any key" does not do the trick, and Enter must be used.

Test it with cmd /k pause and start cmd /c pause .

Note that the start option closes the window, so any history will also disappear. If this is important, replace /k with /c and use exit when it is done.

+3
source

Source: https://habr.com/ru/post/1439248/


All Articles