I believe that he is referring to the fact that if you open a dos shell, it takes a snap shot of the environment variables, and changing any of these variables elsewhere (like the control panel) doesn't get reflected in your current shell, only in new shells. I have had the same problems when forking new applications where they see the old values and not updates.
From memory there is supposed to be a flag ( maybe /I ?) that can be specified in the command shell telling it to update itself, but I never managed to this working.
check 'start /?' from the command line
posted 12 years ago
Sorry when I was not very clear with my question. Dave gives a better description of what my problem is.
Originally posted by David O'Meara: check 'start /?' from the command line
start starts a new DOS shell, however I want to remain in my current one .
One thing the PowerShell has that is normally available is the ability to browse the registry like a file system from the command line. Environment settings are kept in the registry, so it may be possible to poll for environment variable changes this way. Not clean, but a possibility. Unless of course each shell gets its own registry copy (possible) in which case you're still in trouble.
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad: