1

On Unix shells, such as sh or 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.