Forum Discussion
AlexKaras
12 years agoCommunity Hero
What is not possible?
You can check the return (exit) code, but there is no need in timeout as by design the method waits until the called command completes.
If you need a timeout, you may call .Run asynchroniously (using its third parameter) and then check in a loop if the command completed and terminate the started process if timeout expired.
BTW, may I wonder why it is so critical that DOS window must be not visible in the test?
You can check the return (exit) code, but there is no need in timeout as by design the method waits until the called command completes.
If you need a timeout, you may call .Run asynchroniously (using its third parameter) and then check in a loop if the command completed and terminate the started process if timeout expired.
BTW, may I wonder why it is so critical that DOS window must be not visible in the test?