title: Faster DirectoryExists function?
body: <p>I use</p>
  
  <pre><code>DirectoryExists (const PathName : String);
  </code></pre>
  
  <p>to check if a directory is reachable from a computer or not. But if the directory does not exist and the path name is a network path, i.e.</p>
  
  <pre><code>\\computer1\Data
  </code></pre>
  
  <p>the method takes a very long time to return.</p>
  
  <p>There must be a faster way to determine that a network folder is not reachable. Or can I configure some timeout parameter that DirectoryExists uses internally (I looked at the source code but it just delegates to GetFileAttributes which is defined in kernel32)?</p>
  
  <p>Any ideas?</p>