title: Combine %USERPROFILE% in path
body: <p>I need help adding current logged %USER% to the path, this is my code so far:</p>
  
  <pre><code>DirectoryInfo dir = new DirectoryInfo(@"%USERPROFILE%\Local Settings\TEST");
  foreach (FileInfo files in dir.GetFiles())
  {
       files.Delete();
  }
  foreach (DirectoryInfo dirs in dir.GetDirectories())
  {
      dirs.Delete(true);
  }
  </code></pre>
  
  <p>how can I make him read %USERPROFILE% as current user?
  I would love an example to figure things out, btw I want to use it to delete C:\Document and settings\%USERPFORILE%\Local Settings\Temp</p>