Tired of "Terminate batch job (Y/N)?", try this
When you invoke a batch file or most applications in a command-prompt and when you wish to close the application by doing a CTRL+C, you get the annoying “Terminate batch job (Y/N)?” prompt. And in most cases, even if you type a “n”, it still kills the application. Example is the Tomcat startup. To avoid this, try this:
[sourcecode language=“jscript”]
YourScript.cmd < Nul
[/sourcecode]
This should no longer ask you with the annoying prompt “Terminate batch job (Y/N)?”.
Now for a few examples from my everyday usage:
[sourcecode language=“jscript”]
grails run-app < Nul h2.bat < Nul startup.bat < Nul mvn tomcat:run < Nul mvn jetty:run < Nul
[/sourcecode]
Cheers.