min*_*nda 28

使用 errorlevel 环境变量:

echo %errorlevel%
Run Code Online (Sandbox Code Playgroud)

这个关于 stackoverflow 的问题有更详细的信息。