title: Getting Downloads Folder in C#?
body: <p>I have made some code that will search directories and display files in a listbox. </p>
  
  <pre><code>DirectoryInfo dinfo2 = new DirectoryInfo(@"C:\Users\Hunter\Downloads");
  FileInfo[] Files2 = dinfo2.GetFiles("*.sto");
  foreach (FileInfo file2 in Files2)
  {
       listBox1.Items.Add(file2.Name);
  }
  </code></pre>
  
  <p>I have even tried this: </p>
  
  <pre><code>string path = Environment.SpecialFolder.UserProfile + @"\Downloads";
  DirectoryInfo dinfo2 = new DirectoryInfo(Environment.SpecialFolder.UserProfile + path);
  FileInfo[] Files2 = dinfo2.GetFiles("*.sto");
  foreach (FileInfo file2 in Files2)
  {
       listBox1.Items.Add(file2.Name);
  }
  </code></pre>
  
  <p>I get an error though...</p>
  
  <p>Ok, where it says <code>Users\Hunter</code> Well, when people get my software, there name is not hunter...so how do i make it to where it goes to any user's downloads folder? </p>