title: How to execute .bat file to run test cases from controller / job / service
body: <p>I want to invoke batch file from .job file to execute my test-cases periodically, for this 
  I wrote below code in the job file</p>
  
  <pre><code>Runtime.getRuntime().exec("C:testcase.bat")
  </code></pre>
  
  <p>above line is calling batch file, printing the batch file commands and i am not getting any output.</p>
  
  <p>But the same thing worked with static java file and can able to run the testcases.</p>
  
  <p>please let me know how to call batch file from my Controller / Service / Job</p>
  
  <p>batch file contains below commands :</p>
  
  <pre><code>:d
  cd D:\workspace\MyApp
  grails teat-app
  </code></pre>