title: C# getting the path of %AppData%
body: <p>C# 2008 SP1</p>
  
  <p>I am using the code below:</p>
  
  <pre><code>dt.ReadXml("%AppData%\\DateLinks.xml");
  </code></pre>
  
  <p>However, I am getting an exception that points to the location of where my application is running from:</p>
  
  <blockquote>
    <p>Could not find a part of the path
    'D:\Projects\SubVersionProjects\CatDialer\bin\Debug\%AppData%\DateLinks.xml'.</p>
  </blockquote>
  
  <p>I thought the <code>%AppData%</code> should find the relative path. When I go <code>Start|Run|%AppData%</code> windows explorer takes me to that directory.</p>
  
  <p>I can not put the full path in, as the user is different on each client machine.</p>