title: Finding less files when running a DirectoryInfo.getfiles inside a windows service than in a console app
body: <p>I'm gathering a list of files on a fileshare. The file share has this format:<br>
   <code>\\&lt;machinename.domain&gt;\Global$\Folder\Documentation\ARCHIVE</code></p>
  
  <p>I'm getting the files with this code:</p>
  
  <pre><code>Dim di As New IO.DirectoryInfo(_archiveRootPath)
  Dim files As IO.FileInfo() = di.GetFiles("*", IO.SearchOption.AllDirectories)
  </code></pre>
  
  <p>When I run this in a WinForm test app on the server I find 3502 files.<br>
  When I rightclick the folder I find 3502 files<br>
  When I add the code into a service and run it I find 1811 files.   </p>
  
  <p><strong>Question: How is that possible?</strong></p>
  
  <p>The service run under the exact same account. </p>
  
  <p>The folder contains about 80G of data.</p>
  
  <p>Thanks for any suggestions!</p>
  
  <p>Larsi</p>