how do I set environment variables from a Windows app?

I would like to set environment variables from my Windows application.  I searched the Systems.Environment namespace but there doesn't appear to be a method that will allow me to do that (although I found a method to retrieve environment variables...).

Does anyone know how I can set an environment variable

Thanks


Answer this question

how do I set environment variables from a Windows app?

  • DJS330

    although it would be overkill, do you know if it's possible to set them through WMI
  • temosol

    Couldn't find a way to do this either. Only found Environment.GetEnvironmentVariable(s).
    There is no way to do this in versions 1.0 and 1.1, but it is a feature considered for our next release, Whidbey.

  • how do I set environment variables from a Windows app?