Windows – How to supress “Terminate batch job (Y/N)” confirmation?

In cmd, when we press Ctrl+C we get the target application terminated but if the target application is called from a batch file, we get this “Terminate batch job (Y/N)” confirmation. I can never remember an instance where I chose not to terminate the batch job. How can we skip this confirmation?

Solution:

AFAIK you can’t as this behavior is by design and controlled by the command interpreter. There is no method of “mapping” or even “intercepting” this unless you de-compile and recompile the interpreter directly.

💠

🔵 Best-selling hard drives, USB flash drives & SSDs everyone's buying.

Fast, reliable, and on sale now. Thousands pick these weekly — don't miss Amazon's lowest storage prices.

Top 10 Bestsellers
🏆 4.7★+ Reviews
📦 Prime Shipping
👉 See today's best-selling Data storage on Amazon.com HDD · USB Flash Drives · SSD · External Drives
🛒
✅ Updated hourly — Amazon real-time ranking 🔥 Limited stock deals 🔗 Affiliate
⭐ Click to see complete best-selling list ⭐
Scroll to Top