title: To relative path from base absolute
body: <p>I have an absolute folder path and files path like following:</p>
  
  <p><code>C:\BaseDir</code> - <em>base folder</em></p>
  
  <p><code>C:\BaseDir\sub\123.txt</code> - path to file that is located in <em>base folder</em> (but maybe also with some subfolders)</p>
  
  <p>Another example of file path: <code>C:\BaseDir\file.docx</code> or <code>C:\BaseDir\sub\sub1\file.exe</code></p>
  
  <p>I need to convert pathes to files from absolute to relative based on the <em>base folder</em>. Results should look like following:
  <code>sub\123.txt</code> ; <code>file.docx</code> ; <code>sub\sub1\file.exe</code></p>
  
  <p>Please note, that I don't want <code>BaseDir</code> in path. Solution should also work with network folders(<code>\\Server1\BaseDir\file.docx</code> or <code>\\172.31.1.60\BaseDir\sub\123.txt</code>).</p>
  
  <p>Are there any built in classes that do this?</p>