title: Get relative path of a parent's subfolder
body: <p>I had a massive batch file which I split into several smaller ones, with one master file calling each of the smaller files individually. For neatness I put the individual scripts in a subfolder from the project folder (the master script is in the project folder).</p>
  
  <p>This has however has caused an issue - I can't work out how to change some paths in the new individual scripts. Here is approximately what layout is like:</p>
  
  <pre><code>Project
  |---MasterScript.bat
  |   
  |---Scripts
  |   |---scriptA.bat
  |   
  |---Exes
  |   |---program.exe
  |   |---config.xml
  </code></pre>
  
  <p>So the master script calls each of the batch scripts - <code>A</code> and script <code>A</code> calls <code>program.exe</code> with argument <code>/config config.xml</code>.</p>
  
  <p>The issue is how to address <code>program.exe</code> and <code>config.xml</code>.</p>
  
  <p>I unfortunately have just hacked these scripts together without really knowing how batch file paths are resolved, and so have literally no idea how to write relative paths using the parent folder etc. relationships.</p>
  
  <p>So essentially I am asking in general how to write relative batch paths and specifically how to write these paths.</p>