title: Remove File:/// before a folder path
body: <p>I have this code </p>
  
  <pre><code>string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
  </code></pre>
  
  <p>This yields a string such as</p>
  
  <pre><code>"file://C://Foo//bin"
  </code></pre>
  
  <p>What I want is</p>
  
  <pre><code>"C://Foo//bin"
  </code></pre>
  
  <p>How do I get that without removing <code>"file://"</code> from the beginning manually?</p>