Announcement

Collapse
No announcement yet.

update/refresh environment variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • update/refresh environment variable

    Hello all,
    In my AutoPlay media studio project, I would like to allow user to update the users or systems environment variables.
    I use the functions Registry.GetValue & Registry.SetValue to read and update the registry value.
    But updated variables are not refreshed into the user windows session.


    Is it possible to refresh these varaibles without forcing the user to log off?

    thanks for you help
    --JL

  • #2
    You could use this.

    Ulrich

    Comment


    • #3
      Thank Ulrich you for this answer.
      This method allows to update the environment for processes executed after calling the "RefreshEnvironment.exe"binary.
      What I would do is that my project modified an environment variable and can immediatly use this update.
      Using the function "Registry.SetValue" the registry is updated. if I close my project and rerun it the updated value is used.

      thanks again for help

      --JL

      Comment

      Working...
      X