title: How to cut out a part of a path?
body: <p>I want to cut out a part of a <code>path</code> but don't know how.
  To get the <code>path</code>, I use this code:</p>
  
  <pre><code>String path = System.IO.Path.GetDirectoryName(fullyQualifiedName);
  </code></pre>
  
  <p><strong>(path = "Y:\Test\Project\bin\Debug")</strong></p>
  
  <p>Now I need the first part <em>without</em> <strong>"\bin\Debug"</strong>.</p>
  
  <p>How can I cut this part out of the current path?</p>