after each command that you want to check for failure.
If the command to the left of that fails, the batch file will quit/exit.
Two pipe symbols space GOTO space colon EOF
EOF stands for End Of File. You DO NOT need to create a label called EOF.
It is understood as the "end of your batch file".
Example:
DIR Q: || GOTO :EOF
TYPE FILENAME.EXT || GOTO :EOF
Austin M. Horst
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.