Created
May 13, 2019 08:48
-
-
Save ialex32x/97e5aabae8fa8b642475c5351fbbed07 to your computer and use it in GitHub Desktop.
在bat批处理中判断上一条命令执行结果
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo building... | |
go build -o sgless | |
if %errorlevel% NEQ 0 ( | |
exit 2 | |
) | |
echo all done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment