Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • Last Modified:

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?
0
milesri
Asked:
milesri
  • 2
1 Solution
 
andrew_aj1Commented:
can you just type cmd again from the prompt to access the new system environment?
0
 
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

0
 
andrew_aj1Commented:
This may be a limitation of cmd. It will only get this information from the initial launch.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now