How to load/refresh environment variables WITHOUT leaving command prompt?

D

David Welch

Assume I start a command prompt.
Then the command prompt takes the current environment variables.
Now I changed some of the env vars.
These changes are NOT visible in the opened ComPrmpt.

Is there a way of doing a "refresh" (=update Environment variables)
without exiting and restarting Command Prompt?

David
 
J

Jose

Assume I start a command prompt.
Then the command prompt takes the current environment variables.
Now I changed some of the env vars.
These changes are NOT visible in the opened ComPrmpt.

Is there a way of doing a "refresh" (=update Environment variables)
without exiting and restarting Command Prompt?

David

if you type "set" in your command prompt window, you will see the
current variables. These can be adjusted, added, deleted through My
Computer, Properties, Control Panel, Advanced, Environment
Variables.

If you make changes in the window and do not see them, you may not
understand the usage of the "set" command (use set /? to see
options). But these changes are only or the duration of the window.
Some restrictions apply to the changes Windows lets you make with this
method.

read: http://support.microsoft.com/kb/310519

If you are trying to add new environment variables follow the
directions in the article.

If you still can't get it to work, you might provide details about
what you are trying to accomplish, what you expect to see and what you
are really seeing.
 
S

smlunatick

Assume I start a command prompt.
Then the command prompt takes the current environment variables.
Now I changed some of the env vars.
These changes are NOT visible in the opened ComPrmpt.

Is there a way of doing a "refresh" (=update Environment variables)
without exiting and restarting Command Prompt?

David

As with the older DOS versions, you can "SET" the environment any time.
 
R

Ron Avanzino

How are you changing environment variables? The command SET, without
parameters, displays environment variables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top