'Remove the prompt "Terminate batch job (Y/N)?" in the windows script
When I type Ctrl^C to stop a running windows script (.bat) from the windows command prompt, it gives me a prompt "Terminate batch job (Y/N)?". How can I remove this prompt?
Thanks
Solution 1:[1]
This prompt is a system message that is difficult to disable.
You can try adding an exit
command. I also found this link that may help or you could just deal with it.
This prompt is an important safety prompt to make it so that you don't accidentally stop your batch file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DucksEL |