Is there a way I can apply environment variables without rebooting on windows 7?
If you set an environment variable with the
The environment variables that are held in the registry are not, in fact, environment variables at all. They are a template. Coöperating programs read from the template and create/modify their own actual environments from it. They know when the template changes because there's a windows message that is broadcast to all top-level windows to say that this has happened. You need to broadcast that message. All coöperating programs, including Windows Explorer, will re-read the template and adjust their environments, that will be inherited by any new processes that they spawn from that point onwards, accordingly.