title: Method to determine if path string is local or remote machine
body: <p>What's the best way, using C# or other .NET language, to determine if a file path string is on the local machine or a remote server?</p>
  
  <p>It's possible to determine if a path string is UNC using the following:</p>
  
  <pre><code>new Uri(path).IsUnc
  </code></pre>
  
  <p>That works great for paths that start with C:\ or other drive letter, but what about paths like:</p>
  
  <pre><code>\\machinename\sharename\directory
  \\10.12.34.56\sharename\directory
  </code></pre>
  
  <p>...where both refer to the local machine - these are UNC paths but are still local.</p>