Environment variables : where storede ?

P

Pivert

Hi,

where are the environment variables stored ?

I know how to add / modify them, but would like to be able to save them
somewhere for restoring purposes, just in case...

Thnaks !
 
W

Will Denny

Hi

Why not go to where you modify the Environment Variables and then save to a
text file?

--

Will Denny
MS-MVP Windows - Shell/User


| Hi,
|
| where are the environment variables stored ?
|
| I know how to add / modify them, but would like to be able to save them
| somewhere for restoring purposes, just in case...
|
| Thnaks !
|
|
 
T

Tom Porterfield

Pivert said:
Hi,

where are the environment variables stored ?

I know how to add / modify them, but would like to be able to save them
somewhere for restoring purposes, just in case...

Thnaks !

Two places, depending on whether they are user or machine variables, but
both in the registry. The machine variables are stored at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment. The user variables are stored at
HKEY_CURRENT_USER\Environment.

--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
P

Pivert

Thanks !
Will now be able to export to a .reg file for later restore in case of
problem !
Phil
 

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