Influenced by this discussion Batch File Distribution Returning Error I want to test it with ESWD packages.
I create a package for a batch file. This batch works if I used it in "Batch File Distribution". I get a message and a error code in Scheduled Task. If the batch failed the task failed (EXIT /B %errorlevel%). ok
But if I create a SWD Distribution package of this batch and start it with Scheduled Task, I got the message only. Every time I start it the task is successful. The task never fails if the batch fails... :|
Is there a possibility to send a error code from a SWD package which started a batch or is there another trick to send a error code to Scheduled Task. I found no information in the docs about package builder...