PDA

View Full Version : Can I disable "Wait for completion" and still get the exit code?


TOWENS
05-27-2014, 01:33 PM
I am trying to parallelize some calls to VSTest.Console.exe. The calls publish the test results back to TFS but I also need to get the exit code from each call to know if any tests failed so I can also fail the build in TFS. Is it possible to get the exit code from the stored RUNPROGRAM_PROCESSID?

kinook
05-27-2014, 01:50 PM
http://blogs.technet.com/b/heyscriptingguy/archive/2006/12/08/how-can-i-start-a-process-and-then-wait-for-the-process-to-end-before-terminating-the-script.aspx

https://encrypted.google.com/search?q=vbscript%20wait%20for%20process%20id%20ex it%20code