= Automap scripts need to set {ErrorCount} = == Summary == When Automap calls an external script, and that script returns an errorlevel != 0, then Automap needs to bump the {ErrorCount} and fail the job run. In 2010.3, if the script fails and returns an errorlevel, there is no way to identify this in Automap. == Use Cases == Consider a target build script that needs to perform some action before Automap can process the job. The Pre-build script might look like this: {{{ c:\scripts\automap_prebuild.bat }}} That script might look something like this: {{{ rem Some important activities take place here. if NOT exist somefile.foo ( echo [ERROR] The important file is missing. exit /B 1 ) exit /B 0 }}} ---- <>