title: How to hide command prompt windows using ExecDos command
body: <p>I want to execute three bat files in my script, the problem is when i run these <code>.bat</code> files directly using <code>execwait</code>, command windows gets open, I want to hide these command windows but its not working. My code is of just 3 lines.</p>
  
  <pre><code>ExecDos::exec '"catalina_start.bat"' 
  ExecDos::exec '"mysql_start.bat"' 
  ExecDos::exec '"apache_start.bat"'
  </code></pre>
  
  <p>I also tried this <code>nsExec</code> command but still no solution:</p>
  
  <pre><code>nsExec::Exec "cmd /C catalina_start.bat"
  nsExec::Exec "cmd /C mysql_start.bat"
  nsExec::Exec "cmd /C apache_start.bat"
  </code></pre>
  
  <p>A little background on these <code>.bat</code> files, Actually these are files of xampp setup, xampp internally uses these files to start tomcat, mysql, and apache.
  The problem I am facing is that only first bat file gets executed, i. e. tomcat gets started (I can see that in xampp console), but then script dosen't move ahead, sql and apache is not getting started.</p>