Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created January 10, 2012 02:17
Show Gist options
  • Select an option

  • Save hidsh/1586443 to your computer and use it in GitHub Desktop.

Select an option

Save hidsh/1586443 to your computer and use it in GitHub Desktop.
test result code
@echo off
:: 0: exit normally
:: others: failed
a.exe 0
if not %ERRORLEVEL% == 0 goto __FAILED
echo succeeded.
goto __EOF
:__FAILED
echo failed.
:__EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment