title: How to run a batch file from another batch file but in a separate process?
body: <p>I want to run a batch file from another but at the time of doing so I have a problem. The first batch executes the second batch, both of them are in different folders. </p>
  
  <p>But the problem is that when the second batch is executed, <strong>it appears that it was in the first folder</strong>, which is incorrect because the second batch should be in folder B not in the A.
  I'm sure the problem is that the first batch is the one that runs everything, so everything else happens as if it were part of the first batch process.</p>
  
  <p><strong>So how can I solve this problem?</strong></p>
  
  <p>CHECK THE OUTPUT: <a href="https://i.stack.imgur.com/7NUjr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7NUjr.png" alt="enter image description here"></a></p>
  
  <p>This is my code: </p>
  
  <pre><code>-&gt; batch in folder A: start "" C:\Users\MyUser\Desktop\FOLDER-B\HERE.bat &amp;
  
  -&gt; batch in folder B: echo WHY AM I STILL IN FOLDER-A ? &amp;&amp; pause
  </code></pre>