且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在windows中导出和导入环境变量?

更新时间:2022-12-28 16:14:03

可以使用RegEdit导出以下两个key:

You can use RegEdit to export the following two keys:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerEnvironment

HKEY_CURRENT_USEREnvironment

第一组是系统/全局环境变量;第二组是用户级变量.根据需要进行编辑,然后在新机器上导入 .reg 文件.

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.