title: Setting an environment variable with visual basic 2010
body: <p>Im trying to set an environment variable in Visual Basic 2010 as follows:</p>
  
  <pre><code>Module Module1
  Sub Main()
          Environment.SetEnvironmentVariable("Variable", "Value")
  
   End Sub
  End Module
  </code></pre>
  
  <p>But even though the code runs,</p>
  
  <p>When i go to Environment Variables>System Variables
  Nothing is there</p>
  
  <p>Can someone please tell me whats wrong?</p>