title: C# create dir in %AppData%
body: <p>I want create directory (if not exist) in path AppData/Roaming/test. But my code doesn't work, I dont know why. Can you help me?</p>
  
  <pre><code>        string path;
          path = @"%AppData%\Roaming\test\";
          path = Environment.ExpandEnvironmentVariables(path);
          Console.WriteLine(path);
  
          if (!Directory.Exists(path))
              Directory.CreateDirectory(path);
  </code></pre>
  
  <p>This code doen't create dir.</p>