Look in run.bat, the next to the last line states:
if "%NOPAUSE%" == "" pause
The pause command (look it up in Windows help) displays the message in question.
Usually, a developer places a line like this at the end of a batch file to prevent the command window from closing automatically if the user double-clicked the batch file in Explorer, rather than running it from a command prompt. If you like, you can edit the file to remove the line, or you can set the NOPAUSE environment variable to any value and the pause is skipped.
The pause command gives:
Press any key to continue . . .
The "Terminate Batch Job" is coming from inside JBoss. If you press the 'n' key you will then get the pause prompt.
I would like to get rid of this. Is there any way to turn it off?
The "Terminate Batch Job" comes from the command prompt (cmd.exe) when you kill (via ctrl-c) an application started from a batch file. cmd.exe wants to know if it should continue processing the rest of the batch file even though the application aborted. The typical answer to get around Windows annoyances is to switch to Linux. Another alternative would be to use the shutdown.bat script to stop the app server (and set the NOPAUSE env var so you don't get the 'continue' prompt).