How can I refresh a Windows cmd shell after I modified my Environment variables?
i.e. in bash I can just do "source ~/.bashrc"
that depends where you "set" your environment variables. the equivalent to your bash example would be like this:
and now you refresh it
but i think you have done it via the windows-system-settings-dialog (or whatever its name is). the result of this is that you have actually changed the registry. these registry settings are mapped into the process when you launch a new process.
so, you can either start a new process (cmd.exe in your case) OR you can read the registry keys reflecting the changes you want. you could also write a little .bat / .cmd script which gets the environment from the registry and changes the current enviroment accordlingy (if the mood strikes me i ll do this after lunch).