怎样导出Windows系统变量和用户变量

How to export and import environment variables in windows(e.g. XP)?

I found it is hard to keep my environment variables sync on different machines. I just want to export the settings from one computer and import to other ones.

I think it should be possible, but don't know how to do it. Can anyone help me? Thanks.

 

You can use RegEdit to export the following two keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment HKEY_CURRENT_USER\Environment

The first set are system/global environment variables; the second set are user-level variables. Edit as needed and then import the .reg files on the new machine.

 

http://stackoverflow.com/questions/559816/how-to-export-and-import-environment-variables-in-windowse-g-xp

猜你喜欢

转载自kanglecjr.iteye.com/blog/2153583