Storing enviornment variables

L

laredotornado

Hi,

I am running Windows XP. I was curious where I can store environment
variables so that they can be stored the next time I boot my
computer. Currentlyi, if I go to the Start Menu, click "Run" I can
type

set MYVAR=abcde

echo %MYVAR%

at the command line. However, when I close the command window and re-
open it, the value of MYVAR is not stored. Where can I put this such
that it is stored permanently?

Thanks, - Dave
 
R

R. McCarty

System Properties, Advanced (TAB), Environment Variables
[Button] - Choose either User Profile specific or System Wide
variable and click Add.
 
B

Big_Al

laredotornado said:
Hi,

I am running Windows XP. I was curious where I can store environment
variables so that they can be stored the next time I boot my
computer. Currentlyi, if I go to the Start Menu, click "Run" I can
type

set MYVAR=abcde

echo %MYVAR%

at the command line. However, when I close the command window and re-
open it, the value of MYVAR is not stored. Where can I put this such
that it is stored permanently?

Thanks, - Dave

Right click "my computer" -> Properties -> Advanced -> 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