Return Codes

Discuss Task Sequences and Scripting related issues.

Postby Tech Support » Wed Aug 22, 2007 4:37 pm

Consider first example:
1) I assume this program is run via command / wincommand task. Assume this is Step 1. The first exit code condition can be checked in the chain step 1 itself, i.e. if exit code == 4, go to step X (email somebody), where X is last step in chain.

2) Create a variable monitor task and check if the exit code of the program ==5. Run this variable monitor as Step 2 in the chain. If exit code = 5, then this variable monitor exit code = -100. In this case, go to Step X-1, (email somebody). Make sure that step X-1 has the condition: Chain always stops at this step.
Tech Support
Site Admin
Posts: 1276
Joined: Thu May 25, 2006 11:12 am

Return to Task Sequences, Chains and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest