My challenge is to run an SSIS package and pass back a custom error code to the command line via dtexec. The software that runs the batch file will take necessary action based on the code returned. These custom codes would be based on row counts etc. in our database. The question is, how do I force error/warning codes back to the command line. I am familiar with the built in ERRORLEVEL variable but this does not provide me with the conditional logic I am going to write. Please let me know if any of you have had experience with this. Your advice is greatly appreciated.