On Unix shells, such as
bash, there is a
-e flag that causes it to stop executing a script as soon as a command encounters an error.
Is there any equivalent for Windows CMD.EXE? If not, why not -- it seems obviously useful?
I have done a lot of googling, but can't find any solution. Yet, it seems like such a major problem that I'd expect Microsoft to have added a solution at some point - they have not been afraid to enhance other aspects of CMD.