Update windows environment variable immediately
After setting new environment variables on Windows, you may find the newly added variables are not ready to use. Usually you have to restart or at least logout and logon to enable them. There are some small software tools existing on Internet. They solve the problem by modifying the registry. Is this problem really that tough?
Here is a trick. After adding new variables, run “cmd” from the windows Start menu. This will open a dos/console window. Type “set PATH=c:\”,the text behind the “=” sign is an arbitrary word, just choose what you like. Then close this dos window. Now your env variables should already be updated and ready to use.