Notifies the OS and all running applications that environment variable(s) have changed.
EnvUpdate
[v1.1.04+]: This command is able to throw an exception on failure. For more information, see Runtime Errors.
ErrorLevel is set to 1 if there was a problem or 0 otherwise.
Refreshes the OS environment. Similar effect as logging off and then on again.
For example, after making changes to the following registry key, EnvUpdate could be used to broadcast the change:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment