1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to "Refresh" environment variables in command prompt?

Discussion in 'Windows XP' started by Cindy Parker, Jul 27, 2010.

  1. Cindy Parker

    Cindy Parker Flightless Bird

    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
     
  2. Greg Russell

    Greg Russell Flightless Bird

    In news:4c4f1253$0$7663$9b4e6d93@newsspool1.arcor-online.net,
    Cindy Parker <cypy@live.com> typed:

    > 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.
     

Share This Page