Announcement

Collapse
No announcement yet.

update/refresh environment variable

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

  • jlmenard
    replied
    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

    Leave a comment:


  • Ulrich
    replied
    You could use this.

    Ulrich

    Leave a comment:


  • jlmenard
    started a topic update/refresh environment variable

    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
Working...
X