title: Batch files : How to leave the console window open
body: <p>I have two batch files, one of them executes another, i.e.</p>
  
  <ol>
  <li>"My Batch File" > 2. "Some Other Batch File"</li>
  </ol>
  
  <p>I've created a shortcut of the first batch file and edited its properties to call its in following way.</p>
  
  <pre><code>cmd.exe /k "&lt;SomePath&gt;\&lt;My Batch File&gt;.bat" &amp; pause
  </code></pre>
  
  <p><strong>What i want to do</strong>
  I want the console window to be open after the execution of the batch file is over. Now it just closes, tried to play around the cmd flags, no result.</p>
  
  <p>Platform : Windows7</p>
  
  <hr>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>Modified the structure, the simple example like this does not work as well,
  Only one batch file i.e. there is no the 2. "Some Other Batch File"
  The only batch file contains smth like this</p>
  
  <pre><code>start /B /LOW /WAIT make package
  cmd /K
  </code></pre>
  
  <hr>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>The same shortcut which is invoked from Explorer does not close the console window.
  <strong>But the console window closes when the shortcut is invoked from the pinned item on taskbar</strong></p>
  
  <p>Any ideas how to keep the console window open? </p>