Windows batch job _exit code
Posted: 04 Dec 2007 3:54
Sorry, this is not a very complex question - I am just starting my implementation and the manual isn't clear.
Question on _exit code setting?
For setting up my batch job in windows -
Is it as simple as this:
@echo off
execute blah blah whatever
here I check if file exists, if not goto failure
rem Successful condition, file does exist
:success
_exit 0
rem this is a successful execution
goto end
rem Failure condition, file does not exist
:failure
_exit 1
rem this is a failure
goto end
:end
Question on _exit code setting?
For setting up my batch job in windows -
Is it as simple as this:
@echo off
execute blah blah whatever
here I check if file exists, if not goto failure
rem Successful condition, file does exist
:success
_exit 0
rem this is a successful execution
goto end
rem Failure condition, file does not exist
:failure
_exit 1
rem this is a failure
goto end
:end