title: How to reference the C:\Users\Public directory programmatically in C#
body: <p>Is it safe to programmatically reference the public folder through:</p>
  
  <pre><code>Directory = System.Environment.GetEnvironmentVariable("public")+"MyCompanyName" // etc.
  </code></pre>
  
  <p>or is there a better way?</p>
  
  <p>Again, what if someone deletes the environment variable for public, and is this safe to use for different language OSs?</p>
  
  <p>This follows: <a href="https://stackoverflow.com/questions/4472266/how-to-install-to-the-public-directory-in-windows-7-from-the-vs-2010-deployment-s">How to install to the Public directory in Windows 7 from the VS 2010 deployment Setup Project</a> </p>