Can the cmd shell be force to reload the enviroment

I have a vbs script were I set a new system enviromment variable using WshShell.Environment("SYSTEM").    It shows up under System Properties but it doesn't show up in the currect cmd window or any window that is spawned from this shell (window).    I tried start cmd from this window and it still maintains the old enviroment.   Is there a way to force it to use the new system enviroment?
Who is Participating?
andrew_aj1Connect With a Mentor Commented:
This may be a limitation of cmd. It will only get this information from the initial launch.
can you just type cmd again from the prompt to access the new system environment?
milesriAuthor Commented:
No,  it still doesn't seem to read it.  I know its been set because I can see it under System Properties and if I launch a new cmd window start->run cmd,  it will have the variable set.  just not any exiting cmd windows

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.