title: What is the most secure way to retrieve the system Drive
body: <p>I know that the following should work:</p>
  
  <pre><code>Environment.GetEnvironmentVariable("windir", EnvironmentVariableTarget.Machine) 
  </code></pre>
  
  <p>My problem with this call is that if for some reason someone decided to remove the "windir" Env Var , this won't work.</p>
  
  <p>Is there an even more secure way to get the System drive?</p>