title: Converting Relative Paths to Absolute Paths
body: <p>I have an absolute path to file A.</p>
  
  <p>I have a relative path to file B from file A's directory.  This path may and will use ".." to go up the directory structure in arbitrarily complex ways.</p>
  
  <p>Example A:</p>
  
  <ul>
  <li><code>C:\projects\project1\module7\submodule5\fileA</code></li>
  </ul>
  
  <p>Example Bs:</p>
  
  <ul>
  <li><code>..\..\module3\submodule9\subsubmodule32\fileB</code></li>
  <li><code>..\submodule5\fileB</code></li>
  <li><code>..\..\module7\..\module4\submodule1\fileB</code></li>
  <li><code>fileB</code></li>
  </ul>
  
  <p>How do I combine the two in order to get <strong>the simplest possible</strong> absolute path to file B?</p>