title: How to keep the cmd open until a command executed fully?
body: <p>I am creating a batch file,which invoke cmd and execute maven build command and cmd has to wait until the command executed fully.</p>
  
  <p>Here is my code,</p>
  
  <pre><code>Myfile.bat
  
  cd E:\MobileGateWay &amp; E:
  
  mvn clean install package 
  
  cmd \K
  </code></pre>
  
  <p>But on executing the above batch file. It invokes cmd and execute maven build command and cmd hide immediately.
  I want to keep the cmd open until the maven build command executed fully.</p>
  
  <p>Can anyone help me on this?</p>