title: Set/Get command line system variables in C#
body: <p>When I open a windows command prompt and type "set" then enter, I get a list of system variables.</p>
  
  <p>How do I set/get those in C# using visual studio?  </p>
  
  <p>I tried:</p>
  
  <pre><code>System.Environment.SetEnvironmentVariable("TestVariableName", "test123");
  </code></pre>
  
  <p>However, when I type "set" into the command line, I don't see my new variable called "TestVariableName" with value of "test123".</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>