Access Denied error in while searching for files
<p>i get the following error when i try to search for files in c:\ directory..</p>

<blockquote>
  <p>Access to the path 'C:\$RECYCLE.BIN\S-1-5-21-3560828095-1020290111-2102031911-500' is denied.</p>
</blockquote>

<p>The code im using is:</p>

<pre><code>private void button12_Click(object sender, EventArgs e)
    {

        string[] files = Directory.GetFiles("C:\\",
      "*.*",
      SearchOption.AllDirectories);

        // Display all the files.
        foreach (string file in files)
        {
            MessageBox.Show(file);
        }

    }
</code></pre>

<p>`</p>
