title: Getting location of a file: network or local
body: <p>What is the easiest way in Windows to get the location of a file?</p>
  
  <p>I have a filename that was returned to me by the Windows function GetModuleName (returns the full name of a module (exe or dll)), and which could be in any valid filename format, e.g.</p>
  
  <ul>
  <li>myfile.dll</li>
  <li>c:\windows\myfile.dll</li>
  <li>\?\c:\windows\myfile.dll (or something like this)</li>
  <li>x:\bin\myfile.dll</li>
  <li>\myserver\myshare\myfile.dll</li>
  </ul>
  
  <p>What is the easiest way to know whether the path refers to a local drive or to a network drive?</p>