How to "Refresh" environment variables in command prompt?

  • Thread starter Thread starter Cindy Parker
  • Start date Start date
C

Cindy Parker

Assume I start CommandPrompt with the current set of environment variables (and their values).

Then I change OUTSIDE some values of these environment variables or even add some new.

When I type now "set" then the old set of environemnt variables is visible.

How can I "refresh" the environment variables inside this CommandPrompt from the outside current (updated) state?
Of cause without having to enter all the changes again inside the CommandPrompt and without exit and restart
CommandPrompt (I want to maintain the history list of commands).

Cindy
 
In
Cindy Parker said:
Assume I start CommandPrompt with the current set of environment
variables (and their values).

Then I change OUTSIDE some values of these environment variables or
even add some new.

When I type now "set" then the old set of environemnt variables is
visible.

How can I "refresh" the environment variables inside this
CommandPrompt from the outside current (updated) state? Of cause
without having to enter all the changes again inside the
CommandPrompt and without exit and restart CommandPrompt
(I want to maintain the history list of commands).

Are we supposed to guess how you changed the variables "OUTSIDE"? Did you
parse a script?

That would allow your independent command environment to parse the same
script and accomplish your stated need.

But if you used a GUI to change the variable values then you'll have to
manually enter them into the command session, or else restart a new one
which will violate your criteria.
 
Back
Top