Using the Run Program activity can sometimes be a bit tricky. This activity will report success if the command execute ok, even if the command execute with a bad result. For example, if I use it to copy a file, but the target folder does not exist, it will still report success, as the command, COPY, worked fine. As you can see in the image below, the activity report back success, but if we look at the program output we see that the copy job did not work.
A way to handle this is to add validation as the next step in the runbook. For example in this scenario verify that the target file exists
I have added a check to the SCO Validation Runbook, that checks if you are using any run program activities, just as a reminder to verify that you check the result of the command. You can download the new version of the runbook 20110909_scoCheck_WOLF. Please note that this is provided “as is” with no warranties at all. If you have any ideas what I should add, please post them as comment to this post or send me an e-mail. Also please note this is all based on my ideas and is not a “Health check” or Microsoft official guidelines.