timeout command not working in batch files
<p>I am trying to invoke a batch file through a tomcat application. The batch is executed properly, but the timeout command in the batch does not pause the batch. When a batch is executed directly, the timeout does pause the process as expected.</p>

<p>I am invoking batch as:
Runtime.getRuntime().exec("test.bat");</p>