title: how to execute .bat from within a .bat with different path?
body: <p>I'm working with multiple .bat files on multiple locations and I would like to connect whole work in one job. So here's the issue:</p>
  
  <p>I have folder called <code>A A1</code> and inside there is .bat file which is working with file which is also in the same folder. Then there is folder <code>A B1</code> with same setup. Example:</p>
  
  <ul>
  <li><strong>W:</strong>
  
  <ul>
  <li><strong>PROJÉČŤ</strong>
  
  <ul>
  <li><strong>A A1</strong>
  
  <ul>
  <li>@ START BAT.bat</li>
  <li>FILE.avi <em>(which is 60 MB)</em></li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>and</p>
  
  <ul>
  <li><strong>K:</strong>
  
  <ul>
  <li><strong>PROJÉČŤ</strong>
  
  <ul>
  <li><strong>A B1</strong>
  
  <ul>
  <li>@ START BAT.bat</li>
  <li>FILE.avi <em>(which is 80 MB)</em></li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Please note the different drives!</p>
  
  <p>So at this point I would like to run <code>W:\PROJÉČŤ\A A1\@ START BAT.bat</code> and when this batch file has executed all written commands, I want to automatically start second batch file <code>K:\PROJÉČŤ\A B1\@ START BAT.bat</code> from the first one <code>W:\PROJÉČŤ\A A1\@ START BAT.bat</code></p>
  
  <p>My batch scripts:</p>
  
  <p><strong>W:\PROJÉČŤ\A A1\@ START BAT.bat</strong></p>
  
  <pre><code>IF EXIST "*.avi" (
      IF NOT EXIST "FILE.avi" (
          REN "*.avi" FILE.avi
      )
      ATTRIB -R "FILE.avi"
      IF EXIST "FILE.avi" (
          ATTRIB -R "FILE.avi"
      )
  )
  REM ???
  PAUSE
  EXIT 
  </code></pre>
  
  <p><strong>K:\PROJÉČŤ\A B1\@ START BAT.bat</strong></p>
  
  <pre><code>IF EXIST "*.avi" (
      IF NOT EXIST "FILE.avi" (
          REN "*.avi" FILE.avi
      )
      ATTRIB -R "FILE.avi"
      IF EXIST "FILE.avi" (
          ATTRIB -R "FILE.avi"
      )
  )
  PAUSE
  EXIT
  </code></pre>
  
  <p>I think I just need to replace the line with <code>REM ???</code> with a command like</p>
  
  <pre><code>START "K:\PROJÉČŤ\A B1\@ START BAT.bat"
  </code></pre>
  
  <p>But the listed commands below have unfortunately not worked:</p>
  
  <pre><code>START "K:\PROJÉČŤ\A B1\@ START BAT.bat"
  CALL "K:\PROJÉČŤ\A B1\@ START BAT.bat"
  START CALL "K:\PROJÉČŤ\A B1\@ START BAT.bat"
  START cmd /K CALL"K:\PROJÉČŤ\A B1\@ START BAT.bat"
  </code></pre>
  
  <p>The batch file in directory <code>K:\PROJÉČŤ\A B1</code> was not executed from within batch file in directory <code>W:\PROJÉČŤ\A A1</code>.</p>
  
  <p>Any ideas, please?</p>