@echo off
Rem A batch file for SimpleCSharpApp.exe
Rem which captures the app's return value
SimpleCSharpApp
@if "%ERRORLEVEL%" == "0" goto success
:fail
echo This application has failed!
echo return value = %ERROELEVEL%
goto end
:success
echo This application has succeeded!
echo return value = %ERRORLEVEL%
goto end
:end
echo All done.
时间: 2024-09-25 19:20:43