I want to be able to tell the ghost console I had a failure or warning during an Execute task.
So if I create a script that I transfer to a machine and execute and I have a failure I would like the task to fail.
What happens now is I get a success in the task.
In XP you can use a batch script and use the command EXIT num.
So I can do error checking in my script and if I run into a problem or an error during my script I can use EXIT 1 and that will set ERRORCODE to 1.
Most commands use ERRORCODE as a way to return a success or failure.
Execute tasks seem to be only pick up if the file/script exists, not whether it was successful or not.
Is there any environment variable or some other way I can make the Execute task return a failure/warning?
Message Edited by Mark Berning on
08-30-2007 08:15 AM