BASH
echo $?
Windows
echo Exit Code is %errorlevel%
@echo off
my_nify_exe.exe
if errorlevel 1 (
echo Failure Reason Given is %errorlevel%
exit /b %errorlevel%
)
echo $?
echo Exit Code is %errorlevel%
@echo off
my_nify_exe.exe
if errorlevel 1 (
echo Failure Reason Given is %errorlevel%
exit /b %errorlevel%
)
沒有留言:
張貼留言