Answers for "bat stop if call command fails"

1

bat stop if call command fails

The ERRORLEVEL environment variable holds the latest return value:
IF %ERRORLEVEL% NEQ 0 (
  echo "Previous command execution failed."
  exit %ERRORLEVEL%
)
Posted by: Guest on April-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language