Posted: 2011-06-01 08:43
How can I capture the errorlevel or exit code? I'm trying to get the errorlevel for tracing and monitoring as well as documentation for my ftp processes.
I tried with as below in my script but it doesn't echo the error code although there is an error occured
if %errorlevel% NEQ 0 goto error
echo exit with code %errorlevel%
Location: Prague, Czechia
You may need to have shell extensions enabled for this syntax.
For simpler syntax that works always see
You can post new topics in this forum
And it's free!