title: How to create a directory in %appdata%
body: <p>I want to make a directory within the %appdata% folder. This is what I have so far:</p>
  
  <pre><code>public MainForm() {
      Directory.CreateDirectory(@"%appdata%\ExampleDirectory");
  }
  </code></pre>
  
  <p>This does not work, but it also doesn't crash or show any errors of any kind. How would I go about doing this? I have done research, and it does work if I use the actual path:</p>
  
  <pre><code>Directory.CreateDirectory(@"C:\Users\username\AppData\Roaming\ExampleDirectory");
  </code></pre>
  
  <p>However, it does not work when I use the %appdata%. This is problematic as I don't know the usernames of the people using the program, so I can't use the full path.</p>
  
  <p>I have also tried this:</p>
  
  <pre><code>var appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
  var Example = Path.Combine(appdata, @"\Example");
  Directory.CreateDirectory(Example);
  </code></pre>
  
  <p>And it also does not work</p>